Ssh to the same host is not working


 
Thread Tools Search this Thread
Operating Systems AIX Ssh to the same host is not working
# 1  
Old 03-19-2014
Ssh to the same host is not working

I am trying to ssh the same host where I am logged in.It's asking for the password.

Please assist me with the troubleshooting steps for this.


Best regards,
Vishal
# 2  
Old 03-19-2014
The very interesting question is why are you trying to ssh to same host?

Yes, it will ask you for password when you try to connect. Unless you want to add its "public key" to "authorized_keys" file.
# 3  
Old 03-19-2014
Check that the hostname resolving works correctly.
E.g. the own hostname should not be preceded by localhost in /etc/hosts.
# 4  
Old 03-20-2014
Hello,

There are 3 nodes.ssh is working fine from node 1 to 2 and node 1 to 3 but not vice versa. It looks to be some issue with public key of node 1.Even node 1 ssh to itself is not working.



Also the hostname is not preceded by localhost in /etc/hosts.


Please share the steps to be done further/can I generate the public key now for node 1 and copy this to authorized_keys in all the nodes.


Best regards,
Vishal
# 5  
Old 03-20-2014
Ok, you yourself gave the partial answer, it may not be an issue. But, one may have not created the "authorized_keys" file under node 1, with "Public key" of node 2 and node3, if you add those keys to the file you should be able to ssh into the server (node 1) without prompting for password.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Last part of script to remote host not working...

Hi, I got most of the script working, last part which does the ssh to remote and execute the command not working. for SSH in ${HostList}; do echo ${SSH} echo "" SSH2SEND=ssh user@${SSH} curl -v $URL echo $SSH2SEND done error message I am getting ... (5 Replies)
Discussion started by: samnyc
5 Replies

2. UNIX for Dummies Questions & Answers

UNIX script to use ssh to host

I am doing an old-school command to get an inventory to many host using ssh thru Solaris machine. Please help me find a way thru script to get this automized. This will make me lazy but will surely benefit out of it. thanks in advance. Process I am doing: Host IPs (examples): 10.210.1.2... (1 Reply)
Discussion started by: TripleHar
1 Replies

3. UNIX for Dummies Questions & Answers

SSH tunnel working for ssh but not for sshfs

I'm trying to setup a link between my home pc (work-machine) and a server at work (tar-machine) that is behind a gateway (hop-machine) and not directly accessible. my actions: work-machine$ ssh -L 1234:tar-machine:22 hop-machine work-machine$ ssh -p 1234 user@127.0.0.1 - shh access on... (1 Reply)
Discussion started by: Vathau
1 Replies

4. Solaris

SSH: internal working but external not working

Hi, This is a strange issue: We have an sftp server. Users can ssh to it from internal LAN without any issue, but they can not ssh to it externally via firewall. Here is what I got: OS is Solaris 9. No hosts.allow and hosts.deny files. Please help. Thank you in advance! (7 Replies)
Discussion started by: aixlover
7 Replies

5. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

6. Solaris

unable to ssh to remote host

server is ok, I can login on console. however, when I use SSH teachia, there is no repsond. i have check ps-ef | grep ssh, it shows ok. restart ssh too. still not working. Anything else I need to check? # ps -ef | grep ssh root 24706 1 0 Jun 12 ? 0:00... (7 Replies)
Discussion started by: uuontario
7 Replies

7. Shell Programming and Scripting

ssh to a remote host

i want a script with expect or perl or shell which will do ssh to remote host...it will take commandline argument and run the script in remote host....... i.e that will be like ./ssh.exp remoteip username passwd /tmp.kk.sh can someone help me on this? (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

8. Shell Programming and Scripting

host cp in ksh script not working

The following script is designed to backup the oracle control file to the trace directory and then copy (the trace file that was created by the backup command) and rename that file(to a .sql) to a backup disk. When I run the script from sqlplus as sysdba everything works but when I execute from... (1 Reply)
Discussion started by: tparker123
1 Replies

9. UNIX for Advanced & Expert Users

using: ssh host command

I will remote a connection to a Unix server and launch a command on this server. This commnand requires me to set a view in Clearcase to see the vob element. How do I set a view an run a command with ssh with the syntax: ssh host command? (3 Replies)
Discussion started by: majo
3 Replies

10. UNIX for Advanced & Expert Users

host alias not working: host not found

Hello, I am working on HP-UX , and in the /etc/hosts file we have setup an alias: aa.bb.cc.dd devmach2.unix.org devmach2 devma2v The alias devma2v does not work. Error when pinging devma2v ping: unknown host devma2v For devmach2 the ping works fine , returning the correct IP... (4 Replies)
Discussion started by: FunnyCats
4 Replies
Login or Register to Ask a Question