sftp auto-login

Pete Nesbitt pete at linux1.ca
Thu Jun 17 05:00:00 UTC 2004


On June 16, 2004 06:16 am, diego.veiga at embraer.com.br wrote:
> hi guys,
>
> does anybody know if the sftp has the same option as ftp -n "auto-login"
>
> ftp -n machine << eoc
> user username password
> quit
> eoc
>
> ???
>
> regards,
>
> Diego Brito Veiga
> Technical Publications
> Phone: +55 (12) 39274293
> Fax: +55 (12) 39273342

Hi,
If you want the sftp client to not require a username:password login, then you 
can use key based authentication. However, that would mean that would apply 
to ssh as well, so the user would have auto-login via ssh. The key is server 
side user based, not system wide. You would need a key set generated on each 
host (and pub sent to the server). You could have the key ask for a 
pass-phrase, but it sounds like you don't want that.

I have a few docs related to SSH access at:
http://nesbitt.yi.org:/howto.shtml

Hope that helps.
-- 
Pete Nesbitt, rhce





More information about the redhat-list mailing list