unable to ssh to remote host


 
Thread Tools Search this Thread
Operating Systems Solaris unable to ssh to remote host
# 1  
Old 06-15-2009
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 /usr/local/sbin/sshd2
root 28763 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22865 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 11654 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 14129 1 0 Jun 13 ? 9:34 /usr/local/sbin/sshd2
root 22303 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 17154 1 0 06:30:05 ? 0:00 /usr/local/sbin/sshd2
root 5805 1 0 Jun 13 ? 11:22 /usr/local/sbin/sshd2
root 28872 1 0 Jun 13 ? 10:22 /usr/local/sbin/sshd2
root 459 1 0 10:08:08 ? 2:14 /usr/local/sbin/sshd2
root 28749 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 27878 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22727 1 0 Jun 13 ? 0:00 /usr/local/sbin/sshd2
root 18824 1 0 15:08:19 ? 1:19 /usr/local/sbin/sshd2
root 15732 1 0 Jun 14 ? 4:32 /usr/local/sbin/sshd2
root 1132 1 0 Jun 14 ? 5:17 /usr/local/sbin/sshd2
root 25095 1 0 Jun 13 ? 10:30 /usr/local/sbin/sshd2
root 26139 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 4946 1 0 Jun 14 ? 5:07 /usr/local/sbin/sshd2
root 29045 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 28339 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 22409 1 0 16:08:02 ? 1:09 /usr/local/sbin/sshd2
root 28932 1 0 17:55:11 ? 0:49 /usr/local/sbin/sshd2
root 4060 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 16003 1 0 Jun 14 ? 4:31 /usr/local/sbin/sshd2
root 11889 1 0 21:27:13 ? 0:09 /usr/local/sbin/sshd2
root 23697 1 0 00:12:16 ? 4:06 /usr/local/sbin/sshd2
root 14121 13152 0 22:03:50 ? 0:01 /usr/local/sbin/sshd2
root 9495 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 25640 1 0 08:49:14 ? 2:28 /usr/local/sbin/sshd2
root 2009 1 0 Jun 14 ? 6:57 /usr/local/sbin/sshd2
root 27040 1 0 Jun 13 ? 0:00 /usr/local/sbin/sshd2
root 27840 1 0 01:19:04 ? 3:57 /usr/local/sbin/sshd2
root 20765 1 0 15:41:38 ? 0:00 /usr/local/sbin/sshd2
root 16356 1 0 Jun 13 ? 11:52 /usr/local/sbin/sshd2
root 12073 1 0 05:08:07 ? 3:11 /usr/local/sbin/sshd2
root 26655 1 0 Jun 12 ? 0:00 /usr/local/sbin/sshd2
root 10717 1 0 21:08:05 ? 0:12 /usr/local/sbin/ss
# 2  
Old 06-16-2009
check your /etc/sshd_config file configuration to see it is enabled the option to accept remote logins, maybe during the Solaris Instalation you told it not to accept remote conections, so it will refuse them.

Also, with which user are you trying to login? In case you're trying to connect remotely as root, as a security default it's deactivated.

Try logging with a no-root user and if it doesn't work, check your config file.
# 3  
Old 06-16-2009
Can you ping the server from the client? Sounds more like a networking issue that it does an ssh issue. Are you going through a router or switch to reach the server? maybe the port needs to be open for ssh?
# 4  
Old 06-16-2009
no, I cannot ping it from client

I am able to go through a router to reach the server

Last edited by uuontario; 06-16-2009 at 03:35 AM..
# 5  
Old 06-16-2009
Then it seems its more to do with the router problem add the router to the server #route add <ip>
# 6  
Old 06-21-2009
Are you using "root" to ssh?
# 7  
Old 06-22-2009
if root is not able to ssh try this..

vi /etc/ssh/sshd_config
permit root login - yes
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

SSH to remote host using SOCK5 proxy

I am trying to connect to a remote host C from my node host A. HostA <====> HostB <====> HostC A tunnel has already been formed using SOCKS5 between HostA and HostC. Now I want to SSH from A to C. The SOCKS5 IP us 142.133.132.161 and port 1082. The command I am using is : ssh -L... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

2. Shell Programming and Scripting

Execute command on remote host via ssh

How should i make the following code working #!/bin/bash INPUTFILE="test.txt" while read STRING; do IP=`host -t A $STRING | awk '{print $NF}'` HOSTNAME=`ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no $IP "hostname"` echo $HOSTNAME > out.txt done < $INPUTFILE At this moment while... (3 Replies)
Discussion started by: urello
3 Replies

3. Red Hat

Unable to SSH into machine - ssh_exchange_identification: Connection closed by remote host

For a few days now I have been experiencing issues when trying to SSH into 1 of my machine. I get the following output when running 'ssh -vvv': server1:/home/mymadq> ssh -l root -vvv server2 OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003 debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: jaapar
3 Replies

4. 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

5. Shell Programming and Scripting

ssh can't back from remote host during script execution

Hi all I wrote a script to execute a script on several remote hosts, but somehow during the execution of the local script, ssh can't come back from the remote host, so that causes my local script hanging... I use the below command to do the job in the local script, any idea? ssh... (12 Replies)
Discussion started by: bzylg
12 Replies

6. Shell Programming and Scripting

ssh to remote host and execute command

Hi, could anyone please tell me how to ssh to remote host foo and execute command on it and print the result on local host? Thanks, Paresh (1 Reply)
Discussion started by: masaniparesh
1 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. Linux

Access environment variables on remote host using ssh

How can i access environment variables on remote host using ssh example: # Remote server $ echo $MAIL /var/spool/mail/gacf $ # Local server $ ssh gacf@server1 'echo $MAIL' /var/mail/gacf $ Expected to find: $ ssh gacf@server1 'echo $MAIL' /var/spool/mail/gacf $ (3 Replies)
Discussion started by: brendan76
3 Replies

9. UNIX for Dummies Questions & Answers

Is it possible for a server to be both a remote and client SSH host?

Hi, Not sure if this is possible, I have a server (SERVER1) that is currently set up as a remote SSH host. My client SSH host (SERVER2) is connecting to SERVER1 to scp a file with no password. I now have a need to set up a third server (SERVER3) as a remote SSH host and I need SERVER1 as a... (4 Replies)
Discussion started by: tatchel
4 Replies

10. Shell Programming and Scripting

check ssh connection to remote host

I am using KSH and I need to check whether the remote host has been configured with ssh public key. Is there any way we can check inside a script? (6 Replies)
Discussion started by: praveenbvarrier
6 Replies
Login or Register to Ask a Question