LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-21-2011, 03:39 PM   #1
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Rep: Reputation: 15
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?
 
Old 02-21-2011, 03:52 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Besides on your router, do you have port 22 open in your firewall? Post your iptables -L
 
1 members found this post helpful.
Old 02-21-2011, 03:57 PM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
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

Last edited by repo; 02-21-2011 at 04:03 PM.
 
Old 02-21-2011, 03:58 PM   #4
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
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.
 
Old 02-21-2011, 04:09 PM   #5
Dru-Jitsu
Member
 
Registered: Jun 2010
Posts: 38

Original Poster
Rep: Reputation: 15
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.
 
Old 02-21-2011, 04:19 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
iptables IS your firewall...
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firestarter kills OUTGOING SSH Ubuntu 10.04- rejects SYN/ACK from SSH server edsmithers Linux - Networking 3 09-29-2010 03:53 PM
[SOLVED] Putty - ssh to ubuntu server 9.10 avtandil_k Linux - Newbie 4 04-05-2010 03:28 PM
How to install SSH server on Ubuntu? sllinux Linux - Newbie 8 02-15-2010 06:29 PM
Slow ssh connection over lan with Ubuntu Desktop and Ubuntu Server Recursion Linux - Networking 1 05-23-2009 03:17 AM
Ubuntu Server GUI Via SSH - Possible??? abc27 Linux - Newbie 22 04-23-2008 03:10 PM


All times are GMT -5. The time now is 10:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration