Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Oct 11, 2015 4:57 pm 
Offline
Newbie

Joined: Sun Oct 11, 2015 4:53 pm
Posts: 2
On my server (Ubuntu 14.04 LTS) I rebooted the other day and since then I've had a "Putty Fatal Error: Network Error: Connection Refused". The webserver is working, but I can't connect to log into it.
I don't really want to rebuild the server, but I can if I need to. Fairly new to this, so any tips or pointers are very appreciated.


Top
   
PostPosted: Sun Oct 11, 2015 10:33 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You can use Lish to access your server if ssh isn't working.

It's probably one of two things. First, check whether sshd is running:
Code:
$ ps auwwwwx | grep [s]shd
root      3185  0.0  0.1  61372  1788 ?        Ss   Sep27   0:04 /usr/sbin/sshd -D


If you don't get a line with /usr/sbin/sshd, then it is not running. Check your configuration file /etc/init/ssh.conf to make sure it's set to start. You should have this in that file:
Code:
start on runlevel [2345]
stop on runlevel [!2345]


Then as root or using sudo, run initctl start ssh to start the ssh daemon. If /etc/init/ssh.conf is set up properly as noted above, then ssh should automatically start when your server is rebooted.

If you find that sshd is running, the other possibility is that your firewall is not allowing traffic to port 22. If you are using ufw, then running ufw allow 22 as root should open this port. Otherwise, let us know what you are using to manage your firewall.


Top
   
PostPosted: Mon Oct 12, 2015 5:50 am 
Offline
Newbie

Joined: Sun Oct 11, 2015 4:53 pm
Posts: 2
Thanks for your input. I ended up rebuilding the server, so problem solved now. :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group