RE: SSH keygen and login problem



So you're trying to connect as root to the remote server? Is passwordless root ssh allowed?

Rob Marti

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-
bounces@xxxxxxxxxx] On Behalf Of a bv
Sent: Wednesday, January 12, 2011 8:07 AM
To: General Red Hat Linux discussion list
Subject: Re: SSH keygen and login problem

hi

the .ssh is drwx------

i changed from 600 to 633 for authorized_keys but still asking for password

i checked before ssh-copy-id doesnt seem to be exit on Checkpoint SPLAT . i
login with my normal user then use the expert command (which is like su) i
use the root privilegs for key creating)

2011/1/12, Abhilash abhi <abhilashck72@xxxxxxxxx>:
Hi,

Why cant u use "ssh-copy-id -i ~/.ssh/id_dsa.pub
user@IPaddress"(Destination)..
It will automatically copy the public key to ur destination. And u are
creating the key as root or normal user ?

Thanks,



On Wed, Jan 12, 2011 at 5:43 PM, Johan Booysen
<johan@xxxxxxxxxxxxxxxxxxxxx>wrote:

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@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of a bv
Sent: 12 January 2011 11:27
To: redhat-list@xxxxxxxxxx
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@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,
Abhilash
--
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

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



Relevant Pages

  • Re: ssh remote command problem;
    ... I did the fix as a normal user. ... (we have many other users so I prefer not to mess with my root ... But it seems to get invked on outgoing scp calls as well. ...
    (comp.security.ssh)
  • Re: how to scp a file on behalf of a local user
    ... >> I have a perl script running in root and will periodically copy a file ... >> over a remote server using scp command. ... >> How can I execute scp on a user mode while running the perl script in root? ...
    (comp.security.ssh)
  • Re: [opensuse] ssh key generation
    ... as root: ... Now, when I login, the password is asked *again*. ... the login on the remote server at the moment. ... on your local system before generating the public / private key pair. ...
    (SuSE)
  • Re: SSH keygen and login problem
    ... i login with my normal user then use the expert command (which ... is like su) i use the root privilegs for key creating) ... For my file transfer script i want to use scp without password. ... 1- I logined to my Checkpoint (which is Redhat based and the one who ...
    (RedHat)
  • Re: Error 550 core
    ... delete all CORE files ... At the root of the site ... | I'm trying to download, there is a file named CORE. ... Logged in and can see the remote server and the web site. ...
    (microsoft.public.frontpage.client)