ssh-keygen questions (not working)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users ssh-keygen questions (not working)
# 1  
Old 08-22-2007
ssh-keygen questions (not working)

I have created the keys and placed the public key in the remote user directory (not the server root).
(remote machine: dwebapp1)
ex: /home/webarch/user_name/.ssh/authorized_keys2

cannot ssh into the remote machine using the following command:
ssh ${dwebapp1}

the manned description gives the following pattern:
[options] host [command]
(one of the options is thisSmilie
Options:
-l user Log in using this user name.

But this is not working form me.
I just want to connect from one machine to the other without keying in the user name and password. Please help. The tutorial seems straight forward but I am having trouble. I am using the following tutorial link:

No Passwd Required - Mt Xia: Technical Consulting Group

Thank you for any help you can provide
# 2  
Old 08-22-2007
ssh-keygen questions (not working)

Here is the error I am recieving when typing ssh ${dwebapp1} at the command line of the originating machine:

ssh: $\033[3~{dwebapp1}: no address associated with hostname.
# 3  
Old 08-22-2007
ssh-keygen questions (not working)

Also,

I was not able to use 'scp' command. Instead I used a different ftp client to place the key file on the remote machine in the user's .ssh directory.
# 4  
Old 08-22-2007
are you using openssh or ssh2?
# 5  
Old 08-23-2007
ssh-keygen questions (not working)

I managed to ssh between servers. I created and installed public keys for both machines so that I can ssh from both servers to each other (from server A to B and from server B to A).

I did discover that if using the ssh command at the command line I don't need to use the ${servername} brackets, etc. simply typing 'ssh servername' is the correct format.

I am not sure why the difference from the tutorial I used but it works.

Also, I managed to use 'scp' command but I could only place the key in the root .ssh directory of the remote server.

I am not sure which version of ssh I am using since I am not the administrator of this box. How do I find out?
# 6  
Old 08-23-2007
ssh -V
shows the Version
Best regards joerg
# 7  
Old 08-23-2007
ssh-keygen questions (not working)

Thanks Joerg. The version is listed below.

Server 1 (connecting from)
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090605f

Server 2 (connecting to - dwebapp1)
OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 2004
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-keygen problems

For some reason, when I try copying my public key to the server, despite it showing as being successful: rob@linux044:~$ ssh-copy-id -i /home/rob/Work/Keys/keys.txt.pub !@#$%.com /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/rob/Work/Keys/keys.txt.pub"... (7 Replies)
Discussion started by: Circuits
7 Replies

2. Cybersecurity

What makes up ssh-keygen keys?

When using ssh-keygen what does it look at to build the ssh keys? (1 Reply)
Discussion started by: toor13
1 Replies

3. UNIX for Dummies Questions & Answers

auto login not working after ssh-keygen

Hi, I have a generic id say "abc". In a client i logged into using this generic id and generated the key for autologin to do ssh to a server. I have kept the key in authorized_keys file in the server under the home directory of this generic id. (/u/abc/.ssh/authorized_keys) when i do... (7 Replies)
Discussion started by: rbalaj16
7 Replies

4. Shell Programming and Scripting

sftp ssh-keygen

sftp username@host <<EOF lcd /home/dirA cd /home/dirB mput *.txt exit EOF Hi, i have done the keygen-ssh settings but rite now I log through putty I enter my credentials and then when i successfully log in, then I issue the command ssh server name then I again enter into the server but... (1 Reply)
Discussion started by: rahulsxn660
1 Replies

5. UNIX for Dummies Questions & Answers

ssh-keygen error

Hi, I using ssh-keygen for passwordless authenciation firstly and I am following these steps mentioned below... 1) Login to pngpcdb1 using your user/pass 2) type 'bash' (without quotes) 3) ssh-keygen #generates private and public key. 4) copy this private key to the location of your sftp... (1 Reply)
Discussion started by: karan2597
1 Replies

6. UNIX for Dummies Questions & Answers

keygen-ssh

Hi, I was going thruough the password less authentication of keygen-ssh that will help us in generating keys...One thing that is not clear to me that if in nearby future we conncet to remote ftp server in that case now we need to only provide the user id itself that is password would not be... (1 Reply)
Discussion started by: rahul125
1 Replies

7. UNIX for Dummies Questions & Answers

ssh-keygen

Hi, I am new to unix, recently i was exploring password less remote connection to the ftp server and in that I was exploring the ssh-keygen utility, that it generates private & public keys that helps in transmitting files in encrypted format.Could you please explain me in detail about the... (1 Reply)
Discussion started by: rahul125
1 Replies

8. Shell Programming and Scripting

Query regarding ssh keygen

Hi, I have two Unix servers A and B. I have a script in server A. I want to connect to server B from A using ssh only and without giving passwords everytime i connect. I went through other posts regarding this and I generated a public key in server A and copied that in server B. Now when I... (3 Replies)
Discussion started by: mick_000
3 Replies

9. UNIX for Advanced & Expert Users

ssh-keygen stops working

Hey guys, I was using ssh-keygen settings for a long time to login on remote machines without password. 2 days back it suddenly stops working, i tried by reset all ssh-keygen setting but it not works. what could be the reason of this issue and how can i resolve this? (2 Replies)
Discussion started by: RohitKJ
2 Replies

10. Shell Programming and Scripting

SSH-Keygen script

Hello friends, I wanna to make new script which work as i defined below (1) it connect (using ssh) to remote server (2) remote server having passphrase key with password (3) Generate new passphrase on local machine with random 8 character password. (4) It will atomatically uploaded to... (4 Replies)
Discussion started by: jagnikam
4 Replies
Login or Register to Ask a Question