Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7165

Cant ssh in to docker Container

$
0
0

I want to SSH/SFTP in to my Docker container and the result from the remote host says:Permission denied, please try again.

Information to the Container:

  • Ubuntu 24.04
  • port 22 is Exposed
  • OpenSSH version 3.0.13 is installed and running
  • Root user is root@SSHTest

SSH from remote Host:ssh root@192.x.x.25 -p xxxxx

Since the error says “Permission denied” I expected I only need to change the root password.So I did. The problem did not get solved.

I also tried ssh 192.x.x.x -p xxxxx -l root this also did not work.

I noticed when the password is requested it says: root@192.x.x.25 instead of the root user root@SSHTest since I don't really know much about ssh I don't know if that makes a difference....

My understanding of the difference in the names is that the container has a difference in hostname/IP address than the docker host on which the port is exposed.


Viewing all articles
Browse latest Browse all 7165

Trending Articles