RE: SSH without inputing password
- From: "Johan Booysen" <johan@xxxxxxxxxxxxxxxxx>
- Date: Wed, 21 May 2008 08:54:05 +0100
This works for me on RHEL5:
On the client:
1. Generate a private/public keypair with an empty password:
$ pwd
/home/username
$ ssh-keygen -t dsa
2. Copy the generated public key to the server:
$ scp .ssh/id_dsa.pub username@servername:/home/username
On the server:
1. Rename the public key:
$ mv id_dsa.pub authorized_keys
2. Copy the authorized_keys file to the user's .ssh directory. If the
.ssh directory does not exist, create it and modify its permissions as
follows:
$ mkdir .ssh
$ chown 700 .ssh/
$ mv authorized_keys .ssh/
3. Check that the authorized_keys file has the following permissions:
$ -rw-r--r-- 1 username username 599 Mar 21 10:55 authorized_keys
4. From the client, log on to the server. You should not be prompted
for a password.
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Sanjay Chakraborty
Sent: 21 May 2008 01:11
To: General Red Hat Linux discussion list
Subject: Re: SSH without inputing password
Hi there,
One other thing do not change the permission level for authorized_keys
file
and .ssh key directory.
On Tue, May 20, 2008 at 1:19 PM, aydin sasmaz <sasmaz@xxxxxxxxxx> wrote:
Hi/root/.ssh/authorized_keys
Have you tried this method before or is suitable for you
1) generating a rsa or dsa key pair o a local host,
2) concatenate id_rsa.pub or id_dsa.pub to the
orpassword
authorized_keys2 file on the remote host
After that you can easily ssh from local to remote host without
issue$ssh->shell).
Regards
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:
redhat-list-bounces@xxxxxxxxxx]
On Behalf Of Daniel Carrillo
Sent: Tuesday, May 20, 2008 5:34 PM
To: General Red Hat Linux discussion list
Subject: Re: SSH without inputing password
2008/5/20 tech user <techwww@xxxxxxxxxxxx>:
But what I wanted is:
1> ssh remote_host
2> input password automatically for me
3> let me login into it successfully and stay there
Do you know me? Thank you.
--Ken
Hi.
You can make a simple perl wrapper using Net::SSH::Perl (see
Cheers.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
Regards.
Sanjay Chakraborty
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- RE: SSH without inputing password
- From: Gerrard Geldenhuis
- RE: SSH without inputing password
- From: tech user
- Re: SSH without inputing password
- From: Daniel Carrillo
- RE: SSH without inputing password
- From: aydin sasmaz
- Re: SSH without inputing password
- From: Sanjay Chakraborty
- RE: SSH without inputing password
- Prev by Date: Re: RHEL4 - Boot hangs
- Next by Date: Re: usbquirks in grub.conf on RHEL-5?
- Previous by thread: Re: SSH without inputing password
- Next by thread: Re: SSH without inputing password
- Index(es):
Relevant Pages
|