Switching username using SFTP
freebsd-lists-erik at erikosterholm.org
Sun Jan 13 06:56:13 PST 2008
On Sun, Jan 13, 2008 at 09:38:21AM -0500, takhoos at hotmail.com wrote:
> When I ssh into a system which has different login name from the
> system I'm on I use this syntax: ssh -l host.domain.com.
> How does one do this with SFTP on the command line? The -l switch
> doesn't work. The man pages on SFTP makes no mention of this.
> -- Joe
The man page implies the correct use at the top:
So sftp user at host.example.com works. Lower down in the file, it also
mentions using options, and it turns out that this works as well:
sftp -o User=username host.example.com
More information about the freebsd-questions