making ssh run without password


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers making ssh run without password
# 1  
Old 05-11-2005
making ssh run without password

Hello Everybody,

Could anyone please tell me how to get ssh to work without asking for passwords? (i want to do a ssh <hostname> without getting a request for a password but getting connected straight away)

I have attempted the following but to no avail Smilie ...

I tried to generate a SSH key by running the 'ssh-keygen -t rsa1' command and then stored the results of the public key file generated to another file called 'authorized_keys' (also in ~/.ssh). But then when trying to connect via ssh between the systems I have the same problem...it requests for a password.

I have one home directory, eg /home/user1, that is mounted to both the systems that i want to ssh between. This /home directory resides on a separate third server.

Your help would be much appreciated.

Many thanks

rk
# 2  
Old 05-11-2005
See this post - make sure your .ssh directory is 700.
# 3  
Old 05-11-2005
thanks :)

Well it is now working.
Think it was a permissions issue.

Many thanks for your help

rk
# 4  
Old 05-11-2005
Can some please explain from the start how I can use ssh server without giving password?
# 5  
Old 05-12-2005
I haven't looked yet at the tutorials on this site, but there are thousands of how-tos on ssh on the web. Google is your friend.
# 6  
Old 05-12-2005
Even better, here is the site with instructions.
You need to fingerprint the connection with an initial login after you create the keys, then you can use the connection in a script without the password

http://www.openssh.org/manual.html
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issues making SSH non-Interactive

I fire the rsyn command as below: rsync --delay-updates -F --compress --archive -e "/usr/bin/ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" user1@myhost.server.com:/tmp/jarexplorer-0.7.jar /web/admin/data/ The above command get interpreted as below: ssh -vvv -o... (4 Replies)
Discussion started by: mohtashims
4 Replies

2. Red Hat

SSH password less setup asking for password

Hello Experts, when I am trying to connect my target server through sftp after creating ssh password less setup, it is asking for passowrd to connect. to setup this I followed below process: -->generated keys by executing the command "ssh-keygen -t rsa" -->this created my .ssh directory... (9 Replies)
Discussion started by: Devipriya Ch
9 Replies

3. UNIX for Advanced & Expert Users

Making SSH coonection through putty

Hi Folks , I am using putty to connect to a unix box machine the issue is that every time i need to enter the credentials of the servers (unix box) , please advise is there any way i can configure putty so that only i need to eneter the user id of the server and password is automatically pass... (1 Reply)
Discussion started by: n4noida
1 Replies

4. Ubuntu

Run a script at remote server without ssh password

Hello, What I want to do is to run a file on remote server by running a script at localhost but script should not ask ssh password of my remote server when script is executed. Scenario1: To copy files from server2 to data server:$ scp -r root@server2_ip:/var/www/html/*.* /var/ When I enter... (6 Replies)
Discussion started by: baris35
6 Replies

5. Shell Programming and Scripting

How to run commands on remote server using ssh password less authentication?

Hi, I need to run a script located in a directory on remote server by using ssh authentication from my local unix server. Can anyone help me in this. I have tried the below command. It worked for echo command but when i tried to open a file using cat command it is showing "cat: cannot open... (6 Replies)
Discussion started by: ssk250
6 Replies

6. Shell Programming and Scripting

Password in ssh

Hello Guys, I have a specific requirement where I need to provide password to ssh and sftp in my script on Solaris. I know password-less connection is the way without password but in my case, I cant use the same due to some limitations. Please let me know if we can tweak it. (7 Replies)
Discussion started by: Deei
7 Replies

7. Shell Programming and Scripting

Making script run faster

Can someone help me edit the below script to make it run faster? Shell: bash OS: Linux Red Hat The point of the script is to grab entire chunks of information that concerns the service "MEMORY_CHECK". For each chunk, the beginning starts with "service {", and ends with "}". I should... (15 Replies)
Discussion started by: SkySmart
15 Replies

8. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

9. UNIX for Advanced & Expert Users

Making things run faster

I am processing some terabytes of information on a computer having 8 processors (each with 4 cores) with a 16GB RAM and 5TB hard drive implemented as a RAID. The processing doesn't seem to be blazingly fast perhaps because of the IO limitation. I am basically running a perl script to read some... (13 Replies)
Discussion started by: Legend986
13 Replies
Login or Register to Ask a Question