0

I've tried to access the Ubuntu platform using SSH, SCP, and SFTP and got refused with a message. I tried service ssh restart and got:

ssh:unrecognized service

I also typed sudo ufw disable in order to disable the firewall, but it still did not let me in. How can I fix this?

avis
  • 1

2 Answers2

3

Chances are you don't have ssh server installed. Use this to install it:

sudo apt-get install openssh-server

To check if it is running:

sudo service ssh status

Try that and see if you can connect to it.

hg8
  • 13,582
G Trawo
  • 1,771
  • 13
  • 14
2

You have to install openssh in order to use the SSH protocol.

On the machine you want to access, install it by running :

sudo apt-get install openssh-server

Instead of disabling your firewall, allow port 22 :

sudo ufw allow 22
hg8
  • 13,582