[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh with password



On: Sat, 05 Dec 1998 10:52:33 -0500 AJ  writes:

> hey,
> im trying to set most of my commands to windows in windowmaker to
> make things easier and i cant get ssh to work because i cant type my
> password in the opening command.. is there a way to edit ssh so that
> u can type something like:
> 
> ssh -l login -p password host.com
> ?
> or is there a way to specify the password for this host so it doesnt
> ask you?

Use ssh-keygen with an empty password[1] and follow the instruction in
ssh(1):

       Ssh  implements  the RSA authentication protocol automati-
       cally.  The user creates his/her RSA key pair  by  running
       ssh-keygen(1).   This stores the private key in .ssh/iden-
       tity and the public key in .ssh/identity.pub in the user's
       home  directory.   The  user  should  then  copy the iden-
       tity.pub to .ssh/authorized_keys in his/her home directory
       on  the  remote  machine  (the authorized_keys file corre-
       sponds to the conventional .rhosts file, and has  one  key
       per line, though the lines can be very long).  After this,
       the user can log in  without  giving  the  password.   RSA
       authentication is much more secure than rhosts authentica-
       tion.

I just tried it and it works in the way you probably want.

	Torsten

Footnotes: 
[1]  The use of empty passphrases is strongly discouraged in
     ssh-agent(1).


Reply to: