Site Tools


linux:general:putty

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:general:putty [2017/01/17 11:29] lunetikklinux:general:putty [2019/12/10 17:11] (current) lunetikk
Line 5: Line 5:
 === PuTTY === === PuTTY ===
  
-This is the most common client+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]] [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]]
  
 === KiTTY === === KiTTY ===
  
-This client is PuTTY with some extra features which are really helpful+This client is PuTTY with some extra features which are really helpful\\
 [[http://kitty.9bis.net/|http://kitty.9bis.net/]] [[http://kitty.9bis.net/|http://kitty.9bis.net/]]
  
Line 17: Line 17:
 === SSH Key === === SSH Key ===
  
-Download "puttygen"+Download "puttygen"\\
 [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]] [[http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html|http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html]]
  
Line 30: Line 30:
 === Autologin === === Autologin ===
  
-Connection -> Data -> "Auto-login username" -> <yourlogin>+Connection -> Data -> "Auto-login username" -> <yourlogin>\\
 Connection -> SSH -> "Remote command" -> "sudo su -" Connection -> SSH -> "Remote command" -> "sudo su -"
  
 === Xming/X11 === === Xming/X11 ===
  
-Install Xming+Install Xming\\
 [[https://sourceforge.net/projects/xming/|https://sourceforge.net/projects/xming/]] [[https://sourceforge.net/projects/xming/|https://sourceforge.net/projects/xming/]]
  
-Enable X11+Enable X11\\
 Connection -> SSH -> X11 -> "Enable X11 forwarding" Connection -> SSH -> X11 -> "Enable X11 forwarding"
  
Line 52: Line 52:
 regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
 </code> </code>
 +
 +==== 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.\\
 +<code powershell plinx-example.ps1>
 +$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  
 + }  
 +</code>
 +
 +<code bash command.txt>
 +hostname
 +uptime
 +</code>
 +
 +<code text ips.txt>
 +10.0.0.10
 +10.0.0.15
 +10.0.0.16
 +</code>
 +
 +==== 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~~+~~DISCUSSION:closed~~
linux/general/putty.1484648991.txt.gz · Last modified: 2017/03/01 12:50 (external edit)