I am connected to my office VPN using Cisco Anyconnect client, from my home. I can putty to a remote machine. But , when I try to vi files, or execute a command such as netstat -an, the putty terminal just hangs. I can still open a duplicate putty session, but even it hangs as soon as I execute certain commands, never to recover back.
Some commands like ls, uname -a works fine. My guess is that the terminal hangs when I try to vi (specially large file) or execute command which has large output.
If I connect to VPN from office, and then vi the same file, it works perfectly fine. My home network is a good speed broadband network. Also, if I connect to the same VPN using the same internet, same cisco-vpn client and vi the same file, from other laptop, it works fine!
Could someone provide some inputs on how this could be troubleshooted?
I am assuming that you are using the same user-id to login to the remote machine and there is no special scripts etc. present in the profile of the target machine (.bash_profile and similar files).
Few ideas -
1 - You may want to look into the putty configuration and see whether both the laptops have the same version and config setup for connecting to this server.
2 - Uninstall putty and re-install it. Otherwise download the latest version of putty and keep it at a different location to use it.
3 - Use ssh directly from windows in place of putty.
Some more info at this link