M
M
Muriam2021-11-30 18:11:17
System administration
Muriam, 2021-11-30 18:11:17

How to return the ability to connect via ssh from Windows 10 to Ubuntu (which is installed on virtualBox)?

I used to connect via ssh from both WinSCP and cmd.
using the command ssh [email protected]

After creating ssh keys in Linux ( ssh-keygen ), the ability to connect via ssh disappeared.
Then, it seems, she completely deleted these keys using the rm -f .ssh/known_hosts command , but ssh access did not resume.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
meDveD_spb, 2021-11-30
@Muriam

to connect with a password, the config on the machine with ubuntu must contain the openssh-server package
and be running

sudo apt reinstall openssh-server
sudo systemctl start sshd.service

in the config '/etc/ssh/sshd_config' the line must be active PasswordAuthentication yes
is disabled or ufw is configured, if it is, check
sudo ufw status

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question