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
Next revisionBoth sides next revision
linux:general:putty [2017/03/01 12:50] – external edit 127.0.0.1linux:general:putty [2017/11/15 17:34] lunetikk
Line 51: Line 51:
 <code> <code>
 regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham regedit /e "%userprofile%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham
 +</code>
 +
 +==== Plink ====
 +
 +You can use Plink (which is part of the PuTTY bundle) to connect your Powershell via SSH to your Linux.\\
 +<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> </code>
  
linux/general/putty.txt · Last modified: 2019/12/10 17:11 by lunetikk