|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
basic networking/ssh question
I set up a new machine yesterday, then tried to ssh in from across the network.. and nothing happened - not even an error message.
How do I open up port 22, or start the sshd to allow incoming connections? I'll carry on fiddling and post back if I solve it. thanks christo I should point out, this machine is running Linux 2.4.7-10
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . Last edited by christo : October 4th, 2002 at 03:49 AM. |
|
#2
|
||||
|
||||
|
I can expand on this a little.. I just tried as root to start the sshd daemon, and it's nowhere to be seen. whereis can't find it in my path, so I fear that it isn't installed -
ssh is fine. I can connect to other machines, but they just can't connect to me ! where can I find the sshd programme? I have googled for it and not find it so far thanks christo |
|
#3
|
|||
|
|||
|
you can find it here www.openssh.org . . .
INSTALL instructions: ftp://ftp.ca.openbsd.org/pub/OpenBS...ortable/INSTALL *note: you need to install Zlib and OpenSSL before you can properly install OpenSSH. |
|
#4
|
|||
|
|||
|
If you are using RPMS then you need the openssh-server package installed and then start it from the init.d scripts. If you are compiling from source then start the ssh daemon (sshd).
Be sure your firewall (iptables) will accept ssh connections. |
|
#5
|
||||
|
||||
|
okay guys,
Thanks for your help. I downloaded openssh and build it from source.. then I setup the privileged sshd user and fired up the daemon.. This looks successful so far: [root@chris sbin]# ps -ef | grep ssh root 7741 1 1 14:15 ? 00:00:00 /usr/local/sbin/sshd root 7746 7679 0 14:16 pts/3 00:00:00 grep ssh Then I tried to connect from another machine on the network and nothing happened.. here's the output: root@pinky:~# ssh root@192.168.1.25 root@pinky:~# there was a long pause in between. I ran netstat and the following (below) was returned, which makes me think that the port is open and listening, so perhaps there is a bit more I need to set up locally.. any ideas? root@pinky:~# netstat -tpl 192.168.1.25 Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 *:whois *:* LISTEN 71/inetd tcp 0 0 *:ssh *:* LISTEN 74/sshd many thanks, christo |
|
#6
|
||||
|
||||
|
all okay
er all fixed now.
pinky is outside our firewall all machines inside can connect :o) thanks, christo |
|
#7
|
|||
|
|||
|
Assuming redhat:
In newer versions it is controlled by the xinetd daemon. You probably needed to run ntsysv to enable it. |
|
#8
|
|||
|
|||
|
You don't have to run ssh via xinetd if you are running Red Hat. I just have the daemon listening all the time.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > basic networking/ssh question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|