Without password via RSA algorithm problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Without password via RSA algorithm problem
# 1  
Old 11-23-2009
CPU & Memory Without password via RSA algorithm problem

hi All,

i need to connect(sftp) from serverA to serverB via rsa algorithm. But i can not success this.

i did like that:

On ServerA:

#ssh-keygen -t rsa

after running this command, "id_rsa" and "id_rsa.pub" files were generated. i checked.there is private key in id_rsa file and public key in id_rsa.pub file.

#ssh user@serverB mkdir -p .ssh
i checked that on serverB .ssh directory was generated.

#cat .ssh/id_rsa.pub | ssh user@serverB 'cat >> .ssh/authorized_keys'
i checked that public key had been sent to authorized_keys file which is in .ssh directory,serverB

but when i want to connect from serverA to serverB like that
on server A it asked me passwordSmilie i dont understand why

# sftp user@serverB
user@serverB's password

Are there any other way connect from one server to another server without password?

Thanks.
# 2  
Old 11-23-2009
Quote:
Originally Posted by temhem
hi All,

i need to connect(sftp) from serverA to serverB via rsa algorithm. But i can not success this.

i did like that:

On ServerA:

#ssh-keygen -t rsa

after running this command, "id_rsa" and "id_rsa.pub" files were generated. i checked.there is private key in id_rsa file and public key in id_rsa.pub file.

#ssh user@serverB mkdir -p .ssh
i checked that on serverB .ssh directory was generated.

#cat .ssh/id_rsa.pub | ssh user@serverB 'cat >> .ssh/authorized_keys'
i checked that public key had been sent to authorized_keys file which is in .ssh directory,serverB

but when i want to connect from serverA to serverB like that
on server A it asked me passwordSmilie i dont understand why

# sftp user@serverB
user@serverB's password

Are there any other way connect from one server to another server without password?

Thanks.
Set the permissions of .ssh directory and all the files to 640
# 3  
Old 11-23-2009
i gave permission all files but it still ask me password.

---------- Post updated at 03:20 AM ---------- Previous update was at 03:19 AM ----------

as 777
# 4  
Old 11-23-2009
Quote:
Originally Posted by temhem
i gave permission all files but it still ask me password.

---------- Post updated at 03:20 AM ---------- Previous update was at 03:19 AM ----------

as 777
That is the problem. It should not be given full permission. Please try

chmod -R 640 .ssh
# 5  
Old 11-23-2009
i gave all files 640 permissions.
But when i write on ServerA:
sfpt user@serverB
Connecting to ServerB
The authenticity of host ServerB' can't be established.
RSA key fingerprint is 81:6a:2c:3a:54:39:51:26:b7:96:86:6e:e9:bf:ac:bb.
Are you sure you want to continue connecting (yes/no)?


i wrote yes and i can log in to serverB.
i quited and try again, still it asked me password.

Arent there any other way to connect from one server to another server without password ?

Thanx
# 6  
Old 11-23-2009
Code:
sfpt user@serverB
Connecting to ServerB

The problem is sftp. What happens when you log into ServerB using ssh?
# 7  
Old 11-25-2009
same things.

are there any way log in to one server from another server without password?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Problem with password algorithm ssha1

Hello, I have an AIX 6.1 machine and a few months ago i changed the default password algorithm to ssha1 after suggestions of our security department that it is a more secure algorithm to encrypt passwords rather than standard AIX algorithm. I noticed that i am having some problems every now and... (0 Replies)
Discussion started by: omonoiatis9
0 Replies

2. UNIX for Dummies Questions & Answers

[SSH-RSA] Still prompting for password after generating keys

Hello, I'm trying to perform these operations without entering any password, as user "fzd":fzd@machine1> scp /tmp/srcFile1 fzd@machine2:/tmp/$destFile fzd@machine1> scp fzd@machine2:/tmp/$srcFile /tmp/$destFilebut alsofzd@machine1> scp /tmp/srcFile1 machine2:/tmp/$destFile fzd@machine1> scp... (6 Replies)
Discussion started by: fzd
6 Replies

3. UNIX for Advanced & Expert Users

Need Password-Less ssh with RSA-VPN

We have RSA SecureID softtoken key generator on my Windows machine. It generates new keys every 1 minute. Any HPUX server (be it ServerD or ServerP) requires my ID and the randomly generated RSA SecureID softtoken key from my Windows to login. I login to ServerD. Then I run a script... (0 Replies)
Discussion started by: mohtashims
0 Replies

4. Shell Programming and Scripting

Password-less RSA Authentication not working

Hello Friends, I know this issue has been raised many times and hence I tried every resolution provided in the forum before I posted this issue again. My Password-less RSA authentication was working fine for quite some time. Whenever the remote server password used to change I used to re-do... (5 Replies)
Discussion started by: mehimadri
5 Replies

5. UNIX and Linux Applications

Running RMAN backups from grid control but using oracle account with rsa keys vs a password ?

I'm a sysadmin trying to help out one of our DBA's setup the RMAN backups (Oracle 11g on rhel5 ) so they can schedule and control them from the OEM grid control. But we want the oracle user to use ssh keys instead of a password. I have the working rsa keys in place for the user but the GUI seems to... (0 Replies)
Discussion started by: samael00
0 Replies

6. SuSE

Loadable Password Algorithm

I just implemented the MD5 Loadable Password Algorithm on my AIX 5.3 TL 11 systems. I run NIS and authentication is working fine between AIX boxes. I have one OpenSuse Linux box in NIS and I get a PAM authentication error when I try to login. If you have an idea on getting the Linux box... (2 Replies)
Discussion started by: prichard
2 Replies

7. AIX

While trying to do ssh without password, rsa key file is created as empty.

Hi i have aix 5.3 operating system, and i am trying to do ssh without passwd, when i tried to create a rsakey, it produces empty file as an output, how can solve that problem? why it is giving empty output file, i tried with different user, situation same,.i have restarted sshd server. .ssh... (2 Replies)
Discussion started by: nibiru78
2 Replies

8. Linux

RSA Keys root account problem?

I have set up RSA private and pub keys between "NodeA" and "NodeB" Everything works fine when I test with a regular user account. However it does not work as root. I followed the same procedure to set up the keys as the root user but I am still prompted for a password. I have verified my... (1 Reply)
Discussion started by: geek4lif
1 Replies

9. Shell Programming and Scripting

SFTP in Shell Script with RSA-KEY or password.

I am trying to SFTP to a couple sites. One has an RSA-KEY that was sent to me. Currently I am running that manually using WinSCP. I would like to set it up as a CRON process on our Linux host (Sun). Can I use the rsa-key they sent me in any directory or does it need to be placed in a specific... (2 Replies)
Discussion started by: alemat
2 Replies

10. UNIX and Linux Applications

SSH: Avoiding password prompt with rsa key generation

Hi, I am using a remote storage service for backing up our data - we want to have a script run as part of a cron job which would do the backups from our local Linux machine to the service's Linux machine. I want to use tar and ssh to do this (rather than mounting the disk and using cp) .... (5 Replies)
Discussion started by: same1290
5 Replies
Login or Register to Ask a Question