Cannot connect to SSHd hosted on Sabayon Server [Solved]

Discussions Regarding Software

Moderator: Moderators

Cannot connect to SSHd hosted on Sabayon Server [Solved]

Postby ryeguy146 » Mon Feb 27, 2012 0:56

As the title says, I cannot connect to the SSHd that I've installed on my Sabayon server. I've tried several configuration options (/etc/sshd_config) and nothing seems to work. My client machine is certainly capable of connecting to other machines using ssh, so that's not the problem. Network connectivity is fine, I can ping the server. The server "sees" the packets sent by the client (tested with tcpdump), and scanning the server with nmap shows the port as filtered. Of course, iptables isn't up, so I'm not sure why it should be filtered. This is a new and fairly unconfigured (default settings) install.

This is over TCPv4 using version 8 of Sabayon ServerBase x86. It is a new install, and connections to SSHd have never worked. If further information is necessary to troubleshoot the problem, I'm happy to provide it.
Last edited by ryeguy146 on Tue Mar 06, 2012 6:03, edited 1 time in total.
ryeguy146
Baby Hen
 
Posts: 5
Joined: Mon Feb 27, 2012 0:46

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby ryeguy146 » Wed Feb 29, 2012 2:10

Well... back to Arch.
ryeguy146
Baby Hen
 
Posts: 5
Joined: Mon Feb 27, 2012 0:46

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby wolfden » Wed Feb 29, 2012 3:13

did you setup sshd? If I recall, it's not setup by default

/etc/init.d/sshd status

sshd is pretty simple and straight forward

equo install openssh

edit /etc/ssh/sshd_config till heart is content

/etc/init.d/sshd start

rc-update add sshd default

make sure firewall not enabled and blocking connections

have fun!
User avatar
wolfden
Sharecropper
 
Posts: 8824
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby ryeguy146 » Thu Mar 01, 2012 3:07

Yea, all that stuff was taken care of. Netstat showed it as a listening service. The only thing I'm concerned about is the port showing up as filtered, but iptables and iptables show as stopped. The SSHd service does show as Started. Everything is configured, but packets are being dropped and the connection attempt times out.
ryeguy146
Baby Hen
 
Posts: 5
Joined: Mon Feb 27, 2012 0:46

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby Thev00d00 » Thu Mar 01, 2012 9:39

We use the UFW firewall...
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
User avatar
Thev00d00
Generally Awesome (tm)
 
Posts: 1467
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby BHReach » Thu Mar 01, 2012 19:00

Here is how I got it to work (from my install notes):

Turn on ssh:

Code: Select all
/etc/init.d/sshd start

Start sshd on boot:

Code: Select all
rc-update add sshd default

Open firewall for ssh on local LAN:

#How to restrict ssh to local network?

# Tried the following:
#ufw allow ssh -> allows port 22 from anywhere
#ufw allow ssh from 192.168.0.0/24 -> ERROR: wrong number of arguments
#ufw allow ssh from 192.168.0.0/24 to any -> ERROR: wrong number of arguments

Code: Select all
ufw allow from 192.168.0.0/24 to any port 22

This allows port 22 access from my LAN.

Code: Select all
ufw status
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby ryeguy146 » Sun Mar 04, 2012 20:11

Where's the documentation that says you use ufw? If you show me where I can find this stuff in the future, there will be no issues. I like documentation.

I've already switched my main server to Debian, but I've a media center to setup, and I'd like to use Sabayon, so this is still relevant.
ryeguy146
Baby Hen
 
Posts: 5
Joined: Mon Feb 27, 2012 0:46

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby BHReach » Sun Mar 04, 2012 20:40

I did not see it in the docs but it has been mentioned in the forum. Sabayon changes very rapidly and the documentation does not keep up.

Whenever you have a network problem after installation, the firewall is the 1st place to look.

Some distros include an active firewall and others do not. Sabayon now includes ufw.
BHReach
Growing Hen
 
Posts: 192
Joined: Thu Jan 31, 2008 20:40

Re: Cannot connect to SSHd hosted on Sabayon Server

Postby ryeguy146 » Tue Mar 06, 2012 6:02

It's rather frustrating that there is no current docs for this. Documentation is why I use Linux.

Complaints aside, thank you all for your help. I suppose that combing the forum is the best option for these types of questions.
ryeguy146
Baby Hen
 
Posts: 5
Joined: Mon Feb 27, 2012 0:46


Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest