Sponsored Content
Full Discussion: unable to ssh to remote host
Operating Systems Solaris unable to ssh to remote host Post 302325639 by uuontario on Monday 15th of June 2009 10:18:54 PM
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
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
SSH-COPY-ID(1)						      General Commands Manual						    SSH-COPY-ID(1)

NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine (presumably using a login password, so password authentication should be enabled, unless you've done some clever use of multiple identities) It also changes the permissions of the remote user's home, ~/.ssh, and ~/.ssh/authorized_keys to remove group writability (which would oth- erwise prevent you from logging in, if the remote sshd has StrictModes set in its configuration). If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file. If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin- gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory, if necessary) SEE ALSO
ssh(1), ssh-agent(1), sshd(8) OpenSSH 14 November 1999 SSH-COPY-ID(1)
All times are GMT -4. The time now is 03:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy