LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SSH on Ubuntu Server 10.10 (https://www.linuxquestions.org/questions/linux-newbie-8/ssh-on-ubuntu-server-10-10-a-864113/)

Dru-Jitsu 02-21-2011 02:39 PM

SSH on Ubuntu Server 10.10
 
Ok so I've got a server running Ubuntu 10.10. Everything is up and dandy. I am trying to set it up as an SSH server which I installed on the option when setting it up. Open-ssh. It will not allow ssh connections. Aside from selecting the option I have done the sudo apt-get instal ssh-server ....I have also ran the /etc/init.d/ssh start. Even with this it still will not establish a connection. I have gone into the router and set 22 to be open and still nothing. Anyone have any other ideas?

corp769 02-21-2011 02:52 PM

Besides on your router, do you have port 22 open in your firewall? Post your iptables -L

repo 02-21-2011 02:57 PM

First verify if your provider allows ssh, eq is port 22 open.
On the router you need to forward the port to the server.
Are you connecting from the outside?
Can you connect on the server?
Code:

ssh 127.0.0.1
Do you get error messages?
try
Code:

ssh -vvv IP
Kind regards

dudeman41465 02-21-2011 02:58 PM

You are unable to connect even on your same home network? Do you have the firewall on the server set to allow port 22? Try disabling it altogether for a minute and see if it helps with sudo ufw disable. Also make sure your config file, /etc/ssh/sshd_config is configured properly. There will be a line close to the bottom where it specifies the users allowed to connect. You can modify the file as you see fit then restart the SSH daemon.

Dru-Jitsu 02-21-2011 03:09 PM

I thought ubunutu didn't come with a built in firewall? I can ssh from the server ssh localhost. But I can't ssh from inside the network or outside the network. I will paste the contents of iptables -L as soon as I can get it typed up since I am running ubuntu server.

corp769 02-21-2011 03:19 PM

iptables IS your firewall... :p


All times are GMT -5. The time now is 09:50 PM.