Ptero-vm icon indicating copy to clipboard operation
Ptero-vm copied to clipboard

Problem with ssh

Open codding-nepale opened this issue 1 year ago • 0 comments

Hello, I would like to know if it was possible to activate ssh on the container because when I try to connect to the container in ssh after configuring ssh it returns this error:

ssh 172.18.0.7 -p 2002 -vvv
OpenSSH_9.2p1 Debian-2+deb12u1, OpenSSL 3.0.11 19 Sep 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 172.18.0.7 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/root/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/root/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 172.18.0.7 [172.18.0.7] port 2002.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: Connection established.
[...]
debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u1
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u3
debug1: compat_banner: match: OpenSSH_7.9p1 Debian-10+deb10u3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 172.18.0.7:2002 as 'root'
debug3: put_host_port: [172.18.0.7]:2002
debug1: load_hostkeys: fopen /root/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /root/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 172.18.0.7 port 2002

Thanks in advance Have a nice day

codding-nepale avatar Dec 14 '23 21:12 codding-nepale