FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 01-12-2011, 10:27 AM
a bv
 
Default SSH keygen and login problem

Hi,,

For my file transfer script i want to use scp without password. Here
is nearly what i have done:
1- I logined to my Checkpoint (which is Redhat based and the one who
is source) with my personal user and gave expert command to have root
permissons.
2. Changed directory to /root/.ssh and gave ssh-keygen -t dsa and
created the key pairs.
3 I copied yhe public key to my home folder at the remote server like

scp ~/.ssh/id_dsa.pub myuser@remoteserver:/home/myuser.ssh/authorized_keys

4. Then i copied this authorized_keys to the /root/.ssh.
5 then tried to send a sample file from my Checkpoint box to remote server
with scp but it requested me to enter a password.

how can i fix this ? then ill adapt my scirpt to this
regards.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 
Old 01-12-2011, 11:13 AM
"Johan Booysen"
 
Default SSH keygen and login problem

Might be worth checking the permissions on the .ssh directory and on the
authorized_keys file. That's bitten me before, and should be:

drwx------ .ssh
-rw-r--r-- authorized_keys

-----Original Message-----
From: redhat-list-bounces@redhat.com
[mailto:redhat-list-bounces@redhat.com] On Behalf Of a bv
Sent: 12 January 2011 11:27
To: redhat-list@redhat.com
Subject: SSH keygen and login problem

Hi,,

For my file transfer script i want to use scp without password. Here
is nearly what i have done:
1- I logined to my Checkpoint (which is Redhat based and the one who
is source) with my personal user and gave expert command to have root
permissons.
2. Changed directory to /root/.ssh and gave ssh-keygen -t dsa and
created the key pairs.
3 I copied yhe public key to my home folder at the remote server like

scp ~/.ssh/id_dsa.pub
myuser@remoteserver:/home/myuser.ssh/authorized_keys

4. Then i copied this authorized_keys to the /root/.ssh.
5 then tried to send a sample file from my Checkpoint box to remote
server
with scp but it requested me to enter a password.

how can i fix this ? then ill adapt my scirpt to this
regards.

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
 

Thread Tools




All times are GMT. The time now is 08:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org