Guake is a drop-down terminal inspired from video games (like Quake) for Linux GNOME environment, the main feature it’s that a hotkey brings up the terminal window wherever you are on the desktop, it’s a fast way to access your terminal. We will setup this feature on Microsoft Windows with AutoHotkey, Putty and putty-quake-terminal autohotkey script.
1. Download and install AutoHotKey 2. Download Putty (putty.exe) and copy to C:\Windows 3. Download putty-quake-terminal and unzip 4. (Optional) Edit putty-quake-console.ini and modify settings 5. Launch putty-quake-console.ahk, login with Putty and press the hotkey (default F12) to toggle.
Fast, not recommended for security reasons, password will be stored in plain text. 1. Create a shortcut for putty.exe 2. Select the properties for the created shortcut and add to the “Target” text box:
-ssh my_user@remote_host -pw my_password
Public and private key pair method, this is recommended. 1. Download and open puttygen.exe from https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html a.) Generate the keys, click “Generate” and move the mouse over the blank are b.) Save the keys, click “Save public key” and “Save private key” (without a passphrase) c.) Copy the public key from “Public key for pasting into OpenSSH authorized_keys file” text box.
2. Login into the remote host with the user used for auto login a.) Create .ssh directory in the home folder and set permission.
mkdir ~/.ssh chmod 700 ~/.ssh
b.) Edit ~/.ssh/authorized_keys, paste the public key from PuTTy Key Generator (see 1/c) and set permission.
3. Open Putty
Create a new session with the following information.
Putty > Session > Host Name ( or IP address ): remote_host
Putty > Session > Saved Sessions: remote_host
Putty > Connection > Data > Auto-login username: my_user
Putty > Connection > Data > SSH > Auth > Private key file for authentication: click browse and select the private key
Putty > Session > Save
You are ready! Open Putty and load the saved session, auto login should work!
4. ( Optional ) Create a shortcut for putty, go to properties and add -load remote_host (session name) to the “Target” text box.