1826071 Members
3703 Online
109690 Solutions
New Discussion

Re: sftp and password

 
SOLVED
Go to solution
Dan Matlock_1
Regular Advisor

sftp and password

Is there any way to pass the password without human interaction. I don't want to gen. the keys.
5 REPLIES 5
RAC_1
Honored Contributor

Re: sftp and password

Yes. Use of .shosts and /etc/shosts.equiv files.
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: sftp and password

You could also use the "expect" program.
We are the people our parents warned us about --Jimmy Buffett
generic_1
Respected Contributor
Solution

Re: sftp and password

You can setup a the client that caches the password/passphrase as long as your sessions is open.

You can use keys with null passphrases.

You can use expect.


Those are the only three I know of.
Con O'Kelly
Honored Contributor

Re: sftp and password

Hi Dan

If you are using 'sftp'which is an SSH utility then you can take advantage of Public key authentication.

This will allow you to login in without passwords but is far more secure than using .rhosts etc.

See the attached doco by Chris Vail for setting up SSH keys.

Cheers
Con
Dan Matlock_1
Regular Advisor

Re: sftp and password

thanx