How to use Putty with Console 2

by in , 0

This post is meant for me to remember when I change my laptop again. 
I love GNULinux but as I am currently working in 100% window only environment, I can’t let go of window yet. I love to do stuffs in Terminal. My choice of terminal in window is Console 2. I don’t want to use CygWin for no reason. I set up a folder for batch scripts and put in window’s path, so that from Console 2, I can do many common tasks. Such as poweroff, vim,curl, nmap, clear, ls, nc, etc.. . When It comes to ssh, I like Putty. Here is how to use putty in Console 2 via @jimueller

The following is as it written in his blog


Instructions
  1. Download ANSICON (Github Repo) and extract the contents from the x86 or x64 folders to your Console2 installation folder.

    I now have the following files in my C:\Program Files\Console2\ directory:
    • ANSI32.dll
    • ANSI64.dll
    • ansicon.exe
    • ANSI-LLW.exe
       
  2. Open Console2 and create a new tab with the command line:
    C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load aPuttyProfileName


But I don't want to make new tab just for each ssh profile, I make ssh.bat inside my batch folder and put this one in ssh.bat instead.
@C:\Program Files\Console2\ansicon.exe "C:\Program Files (x86)\PuTTY\plink.exe" -load %*

So whenever i type
 ssh myserver 
it will load my server instantly inside Console 2. Awesome!.

Leave a Reply