Feature Request: Batch Edit/Globally Override SSH Session Max lines history
0 vote
We have to manually edit our SSH sessions to increase from the default of 256 lines. It would be great if this was added to batch edit, or could be set as an override.
Thanks!
rdm.png
Hello,
In the mean time, you can use this powershell script. I have set the buffer to 512, please adapt to your needs.
As always, when running a power script such as this, please ensure you have a backup beforehand.
cls;
Write-Host;
Write-Host "Fixing SSH Shell sessions"
Write-Host;
$Sessions = Get-RDMSession | where {$_.Kind -eq "Putty"} | where {$_.SubMode -eq "2"}
foreach ($session in $Sessions)
{
Write-Host (" Processing : " + $session.Name);
$session.Putty.HistoryMaxLength = "512"
Set-RDMSession $session;
}
Write-Host;
Write-Host "DONE!"
Write-Host;
edited by mcote on 2/19/2015
Maurice