Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old October 4th, 2002, 03:39 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 9 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
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

Last edited by christo : October 4th, 2002 at 03:49 AM.

Reply With Quote
  #2  
Old October 4th, 2002, 05:34 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 9 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
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

Reply With Quote
  #3  
Old October 4th, 2002, 06:14 AM
jwalk76 jwalk76 is offline
Huge Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2002
Posts: 141 jwalk76 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 3 sec
Reputation Power: 7
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.

Reply With Quote
  #4  
Old October 4th, 2002, 07:51 AM
damonbrinkley damonbrinkley is offline
Modz
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: NC, USA
Posts: 364 damonbrinkley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 6
Send a message via AIM to damonbrinkley
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.

Reply With Quote
  #5  
Old October 4th, 2002, 08:24 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 9 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
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

Reply With Quote
  #6  
Old October 4th, 2002, 08:29 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,296 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 5 m 9 sec
Reputation Power: 101
Send a message via ICQ to christo Send a message via Yahoo to christo
all okay

er all fixed now.
pinky is outside our firewall
all machines inside can connect :o)

thanks,
christo

Reply With Quote
  #7  
Old October 4th, 2002, 08:38 AM
hedge hedge is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2002
Posts: 692 hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level)hedge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 21 h 22 m 10 sec
Reputation Power: 19
Assuming redhat:

In newer versions it is controlled by the xinetd daemon. You probably needed to run ntsysv to enable it.

Reply With Quote
  #8  
Old October 4th, 2002, 08:44 AM
damonbrinkley damonbrinkley is offline
Modz
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: NC, USA
Posts: 364 damonbrinkley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 18 sec
Reputation Power: 6
Send a message via AIM to damonbrinkley
You don't have to run ssh via xinetd if you are running Red Hat. I just have the daemon listening all the time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > basic networking/ssh question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway