X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: sftp removing writable bit Date: Fri, 14 Sep 2007 18:19:00 -0700 Lines: 56 Message-ID: References: <46E7FB17 DOT 3030904 AT scranton DOT edu> <31b7d2790709140653u1fb8f970nb94c03155c0588b4 AT mail DOT gmail DOT com> <31b7d2790709140957k3894063ftcf0f99476bc0d363 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <31b7d2790709140957k3894063ftcf0f99476bc0d363@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com DePriest, Jason R. wrote: > sftp gives you a familiar FTP shell; it is not just a command you run I understand that. > you can list the files on the remote system and make decisions about > what files you want instead of requiring that knowledge beforehand Simple. Just ssh ls /path. > compare > sftp> ? > Available commands: > cd path Change remote directory to 'path' > lcd path Change local directory to 'path' > chgrp grp path Change group of file 'path' to 'grp' > chmod mode path Change permissions of file 'path' to 'mode' > chown own path Change owner of file 'path' to 'own' > help Display this help text > get remote-path [local-path] Download file > lls [ls-options [path]] Display local directory listing > ln oldpath newpath Symlink remote file > lmkdir path Create local directory > lpwd Print local working directory > ls [path] Display remote directory listing > lumask umask Set local umask to 'umask' > mkdir path Create remote directory > progress Toggle display of progress meter > put local-path [remote-path] Upload file > pwd Display remote working directory > exit Quit sftp > quit Quit sftp > rename oldpath newpath Rename remote file > rmdir path Remove remote directory > rm path Delete remote file > symlink oldpath newpath Symlink remote file > version Show SFTP version > !command Execute 'command' in local shell > ! Escape to local shell > ? Synonym for help > > with > $ scp > usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] > [-l limit] [-o ssh_option] [-P port] [-S program] > [[user@]host1:]file1 [...] [[user@]host2:]file2 > > use what works; use what you know > > i prefer sftp because I am more familiar with ftp than i am with rcp > (which scp is based on) Yes. Simply do: $ ssh remote ls /home/andrew/path/to/file file1 $ scp -r dir2 remote:/home/andrew/path/to/file -- Andrew DeFaria When someone asks you, "A penny for your thoughts?" and you put your two cents in, what happens to the other penny? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/