This can be done with "authorized_keys".

It's been some time since I set this up, but I remember the procedure being
something like this:

On the host you will be ssh'ing from do:

ssh-keygen -t rsa
You will be prompted for a file to save the key to and a passphrase.  Make
the passphrase empty.  This will create ~/.ssh/id_rsa and ~/id_rsa.pub.

Append your ~/.ssh/id_rsa.pub to ~/.ssh/authorized_keys on the host you will
be ssh'ing to.

Then you should be able to just do "ssh [EMAIL PROTECTED]" and not receive a
password prompt (the first time it will prompt that it has added the host to
your list of known hosts).

Naturally you would need to know root on the "to" host in order to append its
authorized_keys file.

-Steve

-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: ssh without password


If you have an account on B, ssh to it with your username.....

ssh -l username machinename

but you'll need your account password.

Jianping Zhu wrote:
> I have redhat linux machines  A and B, I have root access to A but not to,
> Is there a way by whick I can ssh from A to B without password. and how?
> 
> Thanks 
> 
> 
> --------------------------------
> Jianping Zhu
> Department of Computer Science
> Univerity of Georgia 
> Athens, GA 30602
> Tel 706 5423900
> --------------------------------
> 
> 
> 




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to