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
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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
svscanboot
svscanboot(8) System Manager's Manual svscanboot(8)
NAME
svscanboot - starts svscan(8) in the /service directory, with output and error messages logged through readproctitle(8).
svscanboot is available in daemontools 0.75 and above.
SYNOPSIS
svscanboot
DESCRIPTION
svscanboot runs the pipeline
svscan /service 2>&1 | readproctitle service errors: .....
with 400 dots. The last 400 bytes of error messages from svscan(8) will be visible to ps(1) through readproctitle(8).
svscanboot sets $PATH to
/command:/usr/local/bin:/usr/local/sbin:
/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
(all in one line, no space)
and clears all other environment variables. Program writers are encouraged to use globally allocated names in /command.
SEE ALSO
supervise(8), svc(8), svok(8), svstat(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), tai64nlocal(8),
setuidgid(8), envuidgid(8), envdir(8), softlimit(8), setlock(8), ps(1)
http://cr.yp.to/daemontools.html
http://cr.yp.to/slashcommand.html
svscanboot(8)