===== PuTTY ===== ==== Download ==== === PuTTY === This is the most common client\\ [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]] === KiTTY === This client is PuTTY with some extra features which are really helpful\\ [[http://kitty.9bis.net/|http://kitty.9bis.net/]] ==== Configuration ==== === SSH Key === Download "puttygen"\\ [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]] - Select SSH-2 RSA\\ - 2048 bit or higher\\ - Click generate\\ - Edit comment\\ - Set a passphrase to secure your key\\ - Save public and private key\\ - Copy the key on top into your "authorized_keys"-file\\ === Autologin === Connection -> Data -> "Auto-login username" -> \\ Connection -> SSH -> "Remote command" -> "sudo su -" === Xming/X11 === Install Xming\\ [[https://sourceforge.net/projects/xming/|https://sourceforge.net/projects/xming/]] Enable X11\\ Connection -> SSH -> X11 -> "Enable X11 forwarding" ==== Backup ==== Backup all sessions of the current user regedit /e "%userprofile%\Desktop\putty-sessions.reg" HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions Backup all settings including sessions of the current user regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham ==== Plink ==== Plink is PuTTY without GUI. You can use Plink (which is part of the PuTTY bundle) to connect to a Linuxsystem in Powershell via SSH.\\ $ips = Get-Content -path "ips.txt" $password = "YOURPASSWORD" $user = "root" $command = "command.txt" foreach ($ip in $ips) { $remoteserver = $user+"@"+$ip Write-Output "yes" | PLINK.EXE -ssh $remoteserver -P 22 -pw $password -m $command } hostname uptime 10.0.0.10 10.0.0.15 10.0.0.16 ==== Hotkeys ==== ^ Command ^ Function ^ | CTRL + l | clears text on screen |\\ | CTRL + w | removes word before cursor |\\ | ALT + d | removes word after cursor |\\ | CTRL + d | logout current user |\\ | CTRL + c | cancel running tasks |\\ \\ \\ ~~DISCUSSION:closed~~