PDA

View Full Version : a way gor not having to type in ssh pass every time? (automate da thing)


Racer D
June 17th, 2003, 03:27 PM
is there any possible way for the system to read the password for ssh from a file?

like when I type "ssh user@server" I get prompted for a password. I need a way to bypass this, or atleast something so I could type the pass in the command ("ssh user:pass@server" or sth, this doesn't work tho)

with samba u can easily specify ur password in .nsmbrc file, can u do something similar with ssh?

and I hope atleast someone understands what I'm trying to say :D

tnx

lurk
June 17th, 2003, 03:57 PM
Originally posted by Racer D and I hope atleast someone understands what I'm trying to say :D


If you want a deeper response please use complete words and sentences :p

ssh-agent

http://www.phil.uu.nl/~xges/ssh/

WAW401
June 20th, 2003, 10:42 AM
ssh automatically attempts to use authentication keys before it even requests your password. Checkout "man ssh-keygen" to generate your ssh version 2 public/private key pair. Once set up, "ssh hostname" logs you in directly.

from ssh-keygen man page:
$HOME/.ssh/id_rsa.pub contains the protocol version 2 RSA public key for authentication. The contents of this file should be added to $HOME/.ssh/authorized_keys on all machines where the user wishes to log in using public key authentication. There is no need to keep the contents of this file secret.

Racer D
June 20th, 2003, 10:50 AM
WAW401: tnx alot, will have to read this man through when I have some more time :D