Re: Switching username using SFTP

2008-01-13 Thread Erik Osterholm
On Sun, Jan 13, 2008 at 09:38:21AM -0500, [EMAIL PROTECTED] 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:
 sftp [EMAIL PROTECTED]:dir[/]]]

So sftp [EMAIL PROTECTED] 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

Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Switching username using SFTP

2008-01-13 Thread Marc Silver
Hi there,

You can simply enter a command such as:

$ sftp [EMAIL PROTECTED]

Cheers,
Marc

On Sun, Jan 13, 2008 at 09:38:21AM -0500, [EMAIL PROTECTED] 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.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"