I'm trying to run a Minecraft server for my kids.
I'm getting this error:
PS C:\Users\zhang> ssh -v -i C:\Users\zhang\Downloads\ssh-key-2024-11-09.key ocp@167.234.208.243
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
debug1: Connecting to 167.234.208.243 [167.234.208.243] port 22.
debug1: Connection established.
debug1: identity file C:\\Users\\zhang\\Downloads\\ssh-key-2024-11-09.key type 0
debug1: identity file C:\\Users\\zhang\\Downloads\\ssh-key-2024-11-09.key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_9.5
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: compat_banner: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006
debug1: Authenticating to 167.234.208.243:22 as 'ocp'
debug1: load_hostkeys: fopen C:\\Users\\zhang/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:8HRhOh8nwzFXhzJB8mZBomFJpSRr0bPBNNWXR7aO3VQ
debug1: load_hostkeys: fopen C:\\Users\\zhang/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen __PROGRAMDATA__\\ssh/ssh_known_hosts2: No such file or directory
debug1: Host '167.234.208.243' is known and matches the ED25519 host key.
debug1: Found key in C:\\Users\\zhang/.ssh/known_hosts:1
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: C:\\Users\\zhang\\Downloads\\ssh-key-2024-11-09.key RSA SHA256:r6YYPaQVLmcfhnQ/9cDPdmrtgLAy6D0dK2gnzRkkUbs explicit agent
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Offering public key: C:\\Users\\zhang\\Downloads\\ssh-key-2024-11-09.key RSA SHA256:r6YYPaQVLmcfhnQ/9cDPdmrtgLAy6D0dK2gnzRkkUbs explicit agent
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic
debug1: No more authentication methods to try.
ocp@167.234.208.243: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Using command
ssh -v -i C:\Users\zhang\Downloads\ssh-key-2024-11-09.key ocp@167.234.208.243
It worked yesterday perfectly fine, but after I used the Screen command on another SSH session to keep the server running before closing that powershell session. Ever since SSH connections are no longer working. I tried with the Cloud Shell as well but SSH no longer works.
I know the server is working as the Minecraft server works fine and I can transfer files via FileZilla. However PuTTY and Powershell SSH commands are not working.
Thank you.