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

Racer D

what?
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
 
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.
 
Back
Top