I'm trying to run a Minecraft server for my kids.
I'm getting this error a error which I think is related perhaps the screen command closing SSH connections somehow. I haven't tried a reboot yet as right now the Minecraft server is still running and I fear if I reboot I won't be able to connect to SSH or have the MInecraft server running at all.
SSH worked perfectly fine yesterday, 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.
Cloud Shell is however sending SSH commands. I think it's a local issue.
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.
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
The command works on Cloud Shell, however.
I have PuTTY installed and SSH agent feature. It worked yesterday. Maybe I've been IP blocked by the VM?