no password ssh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers no password ssh
# 1  
Old 11-23-2004
no password ssh

Hello all,

I would like to know if anyone had ever set up a network in which they used DHCP and OPENSSH with no password. I can configure my ssh files to allow me to enter any machine without a password as long as I have generated the public and private keysa nd store them in my .ssh/aut... But what would happen if the IP is changed? Will I have to regenerate the public and private keys? Is there a way in which I can pre generate the keys and just mv it to the server after it gets it new IP?

Thanks
# 2  
Old 11-25-2004
Yes, I have used SSH with and public-private key pair with no password. It works great if you don't mind the risk of someone gaining access to your machine.

For example, if your machine is already password protected (like a login password), you might consider the benefits of a key pair without a password if you login to a remote server with SSH often.

Yes, you will have to regenerate keys if you change IP address on either the server or the client.

I don't think there is an easy way to pregenerate keys, but you might find a way. If you do, please post how to do it.

Neo
# 3  
Old 12-07-2004
You will need to create a public/private key pair to use for authentication (look up ssh-keygen). This will allow a connection to the remote machine based upon RSA or DSA authentication instead of a password. If a passphrase is used in ssh-keygen, the user will be prompted for a password each time in order to use the private key.

With ssh2 I would recommend creating DSA keys using the procedure below. This will create a public/private DSA key for use in ssh2 sessions only. The public key is stored in ~/.ssh/id_dsa.pub, while the private key is in ~/.ssh/id_rsa. DSA public keys are placed in ~/.ssh/authorized_keys2 on the remote machine.

ssh-agent(1) and ssh-add(1) are utilities used in managing multiple passworded private keys.



Create your own DSA keys. Step-by-step instructions:

1. Run ssh-keygen -t dsa -N '' on your source host (creates a key with No Passphrase).

2. copy $HOME/.ssh/id_dsa.pub to $HOME/.ssh/authorized_keys2 on your remote host

3. chmod your $HOME/.ssh directory to be read/write/execute for only the owner (chmod -R 700 .ssh)

4. Make sure you _really_ are running ssh2 when connecting (Usually this is the default setting).
bostontechgroup
# 4  
Old 12-07-2004
bostontechgrou,
Thanks but I have already done this. I just wanted to know if there is any way to do it when the IP is change after you have generated the keys. Say for a DHCP client after reboot and a new IP is assigned.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Ssh password

Hi there. I am fully aware of the security implications, but is there a way give a user password with the rsh and/or ssh commands? Such as: ssh user@192.168.0.56 -p password Or pass a config file to the command containing a password? I'm looking after a cluster and trying to use PSSH,... (6 Replies)
Discussion started by: MuntyScrunt
6 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. 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

4. Red Hat

ssh without password

Hi, I am trying to generate ssh without having to type a password. I have done this on numerous occasions using the procedure below and it has worked fine but not on this occasion. user1@sys1:ssh-keygen -t dsa -N "" <press enter for any questions> user1@sys1: ll .ssh/id_dsa.pub... (16 Replies)
Discussion started by: Duffs22
16 Replies

5. Solaris

Can't SSH log in without password.

I am working on Solaris 10 Sparc. While ssh trust relation building for SUN-CLUSTER on server, I am facing issue. I can log in from server2 to serer1 direactly but when i log in to server1 from server2 it prompts password. root@app1 # ssh app2 Last login: Wed Jul 27 14:08:14 2011... (0 Replies)
Discussion started by: anand87
0 Replies

6. UNIX for Dummies Questions & Answers

SSH with no password

How to setup SSH to not require a password when establishing an SSH connection from server A to server B for particular user? (4 Replies)
Discussion started by: sam101
4 Replies

7. Shell Programming and Scripting

SSH with password

Please help me I want connect to orther server using ssh. But I need to transfer password also without entering when it is prompts. Please help me. (1 Reply)
Discussion started by: saga499
1 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. HP-UX

ssh without password

Hi, I have the necessity to run a korn shell on a remote server (both HP-UX servers) using the ssh command. The sintax that I use is ssh -l <remote user> <IP address of remote host> command(ksh script) Pressing enter I need to set the password of the remote user. Is it possible to... (2 Replies)
Discussion started by: gio123bg
2 Replies

10. UNIX for Advanced & Expert Users

SSH - Prompting for password

Hi, Can anybody tell me a way to do ssh , without prompting for password from keyboard, Using RSA. The requirement is I need to create the key , using passphrase also..... Is there any way to do it in UNIX ? I am doing it from AIX machine , but remote machine is Linux I tried... (8 Replies)
Discussion started by: shihabvk
8 Replies
Login or Register to Ask a Question