Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.