Putty and SSH problem "Server refused to allocate pty"

Are you port forwarding port 22?? Because you 1000% should not be forwarding port 22 from the outside world. You should set up your router to either be passing a randomly picked, non-standard port from the WAN side to port 22 on your Pi on the LAN side, or simply change the SSH port on the Pi to a random, non-standard port and forward that.

1 Like