I recently purchased a basic vps service to start hosting a teamspeak and a basic website for my gaming organization but I'm running into some problems with what is probably the most basic step in getting started: the SSH server.
When I first purchased the service it came with ubuntu 11.04 installed which is VERY old and no longer supported, but it worked and I could connect and manage it with Putty and I had the teamspeak and everything working but was running into some problems with apt-get and a buddy of mine told me to reinstall it with ubuntu 14 instead as it's an LTS release.
I did that, but now I'm having issue getting SSH to work at all. I can only access the VPS via the serial console at the moment and any attempts to start the ssh service fail and don't give me anything to go on as to why. The only feedback the server gives me is "start: Job failed to start" when I attempt to start the service.
Where do I even start troubleshooting this? I removed and reinstalled both Openssh client and server to no avail.
When I reinstalled the openssh server it did return an error but through some googling I haven't found any solutions. Here's the install log:
I'm pretty new to linux so forgive me if this post seems daft but I've been trying to figure this out for two days now and I'm just stuck. There's probably something super simple that I'm missing.
Thanks
When I first purchased the service it came with ubuntu 11.04 installed which is VERY old and no longer supported, but it worked and I could connect and manage it with Putty and I had the teamspeak and everything working but was running into some problems with apt-get and a buddy of mine told me to reinstall it with ubuntu 14 instead as it's an LTS release.
I did that, but now I'm having issue getting SSH to work at all. I can only access the VPS via the serial console at the moment and any attempts to start the ssh service fail and don't give me anything to go on as to why. The only feedback the server gives me is "start: Job failed to start" when I attempt to start the service.
Where do I even start troubleshooting this? I removed and reinstalled both Openssh client and server to no avail.
When I reinstalled the openssh server it did return an error but through some googling I haven't found any solutions. Here's the install log:
Code:
root@:/# sudo apt-get install openssh-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
openssh-sftp-server python-chardet python-requests python-six python-urllib3
ssh-import-id
Suggested packages:
ssh-askpass rssh molly-guard ufw monkeysphere
The following NEW packages will be installed:
openssh-server openssh-sftp-server python-chardet python-requests python-six
python-urllib3 ssh-import-id
0 upgraded, 7 newly installed, 0 to remove and 62 not upgraded.
Need to get 560 kB of archives.
After this operation, 2218 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssh-sftp-server amd64 1:6.6p1-2ubuntu2 [34.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssh-server amd64 1:6.6p1-2ubuntu2 [319 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ trusty/main python-chardet all 2.0.1-2build2 [106 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ trusty/main python-six all 1.5.2-1 [8060 B]
Get:5 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-urllib3 all 1.7.1-1ubuntu0.1 [39.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python-requests all 2.2.1-1ubuntu0.1 [42.9 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ trusty/main ssh-import-id all 3.21-0ubuntu1 [9624 B]
Fetched 560 kB in 0s (638 kB/s)
Preconfiguring packages ...
Selecting previously unselected package openssh-sftp-server.
(Reading database ... 26034 files and directories currently installed.)
Preparing to unpack .../openssh-sftp-server_1%3a6.6p1-2ubuntu2_amd64.deb ...
Unpacking openssh-sftp-server (1:6.6p1-2ubuntu2) ...
Selecting previously unselected package openssh-server.
Preparing to unpack .../openssh-server_1%3a6.6p1-2ubuntu2_amd64.deb ...
Unpacking openssh-server (1:6.6p1-2ubuntu2) ...
Selecting previously unselected package python-chardet.
Preparing to unpack .../python-chardet_2.0.1-2build2_all.deb ...
Unpacking python-chardet (2.0.1-2build2) ...
Selecting previously unselected package python-six.
Preparing to unpack .../python-six_1.5.2-1_all.deb ...
Unpacking python-six (1.5.2-1) ...
Selecting previously unselected package python-urllib3.
Preparing to unpack .../python-urllib3_1.7.1-1ubuntu0.1_all.deb ...
Unpacking python-urllib3 (1.7.1-1ubuntu0.1) ...
Selecting previously unselected package python-requests.
Preparing to unpack .../python-requests_2.2.1-1ubuntu0.1_all.deb ...
Unpacking python-requests (2.2.1-1ubuntu0.1) ...
Selecting previously unselected package ssh-import-id.
Preparing to unpack .../ssh-import-id_3.21-0ubuntu1_all.deb ...
Unpacking ssh-import-id (3.21-0ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up openssh-sftp-server (1:6.6p1-2ubuntu2) ...
Setting up openssh-server (1:6.6p1-2ubuntu2) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
Creating SSH2 ED25519 key; this may take some time ...
runlevel:/var/run/utmp: No such file or directory
start: Job failed to start
invoke-rc.d: initscript ssh, action "start" failed.
dpkg: error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up python-chardet (2.0.1-2build2) ...
Setting up python-six (1.5.2-1) ...
Setting up python-urllib3 (1.7.1-1ubuntu0.1) ...
Setting up python-requests (2.2.1-1ubuntu0.1) ...
Setting up ssh-import-id (3.21-0ubuntu1) ...
Errors were encountered while processing:
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm pretty new to linux so forgive me if this post seems daft but I've been trying to figure this out for two days now and I'm just stuck. There's probably something super simple that I'm missing.
Thanks