Using an application like Notepad++ Use Regular Expression mode. You will search for a carriage return (Windows uses \r\n as a carriage return), some text, and then another carriage return. The replace with will give you back only the stuff in the parenthesis. Make sure you run “Replace all” as I did not test on
If you run into a key exchange issue with ssh it probably means the server you are connecting to has an older cipher. To fix a diffie-hellman-group1-sha1 problem try the following command: ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 “server-ip” You can do the same thing with other ciphers by replacing diffie-hellman-group1-sha1 with the offending cipher type.