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?
|
Besides on your router, do you have port 22 open in your firewall? Post your iptables -L
|
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 try Code:
ssh -vvv IP |
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.
|
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.
|
iptables IS your firewall... :p
|
All times are GMT -5. The time now is 09:50 PM. |