I tried to connect to my sever through the ssh using ubuntu but it does not work.
sudo apt-get install openssh-server openssh-client
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version (1:8.2p1-4ubuntu0.3).
openssh-client set to manually installed.
openssh-server is already the newest version (1:8.2p1-4ubuntu0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
user@12122017-Dell:~$ ssh localhost
ssh: connect to host localhost port 22: Connection refused
I don't know what i am missing. What should i do? Please help me. Thank a lot
ufw
(you have to install it). – schrodingerscatcuriosity Sep 29 '21 at 12:32systemctl status ssh
orservice ssh status
for example) and listening on the default port 22 (sudo netstat -nlpt | grep sshd
) – steeldriver Sep 29 '21 at 12:42`user@12122017-Dell:~$ systemctl status ssh
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
user@12122017-Dell:~$ sudo systemctl start ssh
[sudo] password for user:
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down`
What should i do.
– Newbie Sep 30 '21 at 07:29systemd
is not installed. Which version of Ubuntu are you using? – user68186 Sep 30 '21 at 19:05net-tools
bysudo apt update
andsudo apt install net-tools
then executenetstat -tulpn4
and add the output to your question ? that should show if your computer is listening tossh
service. another thing that i missed up, are you trying to connect a server? can you be more specific about what pc you are using and what machine you are trying connect to ? – CrazyTux Sep 30 '21 at 19:44open-ssh
program on your server as well? try to run thenetstat -tulpn4
on your server after installingnet-tools
on the server. – CrazyTux Oct 01 '21 at 13:29ssh: connect to host IP port 22: Resource temporarily unavailable
. What does this mean and what should i do. – Newbie Oct 01 '21 at 15:10