I\'ve reinstalled my server and I am getting these messages:
[user@hostname ~]$ ssh root@pong
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@
If you are trying to connect to running docker container on port 2222 with the command and you get the error
mian@tdowrick2~$ ssh pos@localhost -p 2222
Then to solve this problem, on your local computer (i.e. host machine not container) go to cd ~/.ssh/
and open known_hosts
file with text editor. Remove the line starting with [localhost]:2222
and save the file. Now try to ssh again
mian@tdowrick2~$ ssh pos@localhost -p 2222
Error will disappear but you have to do it each time the container restart.