When I want to connect to my server like this
ssh -a username@my-server.de -p 22
it gives me two error messages:
PTY alloca
I encountered this error while using my git bash. I was able to solve this by re-installing git for windows. More details in this answer.
in my case, the SFTP server will reject your SSH connection.
try with option -NT
ssh -NT ...
It's an old question, but if someone gets here like me...
This might be result of a wrong date in the server. If you are working with an embedded system this might be the cause... So check your date:
$ date
I also faced the same issue. Just restarting my servers solved the issue.
I had the exact same error trying to connect via ssh to my server. As I can see you're using a server provided by Hetzner connecting to it on port 22:
debug1: Connecting to xxx.your-server.de [188.40.3.15] port 22.
The offical wiki/documention from Hetzner says:
Protocol for encrypted remote diagnostics for servers/computers(consoles). The SSH port to be used is 222.
So you have to connect via port 222:
ssh -p 222 username@my-server.de