Max Kozlov
Max Kozlov
Algorithms chosen by underlying library here https://github.com/sshnet/SSH.NET/blob/072ba7e01323659d5ee12a59b6cb4f7cf583d64e/src/Renci.SshNet/ConnectionInfo.cs#L366 and somewhere from here https://github.com/sshnet/SSH.NET/blob/072ba7e01323659d5ee12a59b6cb4f7cf583d64e/src/Renci.SshNet/Security/KeyExchange.cs#L101 Posh-SSH has no control over this but seems you server present hmac-sha1 while not allow to use it
@mehranr81, That's why I deleted my comment :) I didn't notice at first that your "illegal" character is a colon
just checked how it works You should use full path while rename ``` powershell $sftp = New-SFTPSession -ComputerName $computer -Credential $Credential -KeyString $KeyData Get-SFTPChildItem -SessionId 0 -Path /home/username ... FullName...
@mehranr81, filezilla has own functions :) but Posh-SSH keep original name https://github.com/darkoperator/Posh-SSH/blob/f00564d72ff566d446b9e858e89bff5c1a0a3013/Source/PoshSSH/PoshSSH/GetSftpItem.cs#L180 so if you want to download file with ':' you should rename it on remote server (my example)...
@mehranr81, you wrote >I wanted to rename each file and then download it , that could be even great, but as i sent the code in picture to u, server...
@insinfo > 'The 'darkoperator/Posh-SSH' repository doesn't contain the 'docs/New-SSHShellStream.mdSent' path in 'master'. " this should be ['docs/New-SSHShellStream.md'](/docs/New-SSHShellStream.md) :)
1. You do not need SSHSession with SCP 2. Try to `$switchip = '10.48.192.68'; Get-scpitem -ComputerName $switchip -Path .....` manually 3. if previous step was succesful, `Write-Host $switchip` before Get-SCPItem,...
Timeout not involved, it was mix of https://github.com/grafana/grafana/issues/39549 and incorrect grafana settings (https://grafana.com/tutorials/run-grafana-behind-a-proxy/) it was fixed with `serve_from_sub_path = True` in grafana.ini someone sometime switched it off :(
Definitely, I'm talking about Connect-PSWSUSServer :) btw, take into account that if default server port will be changed to 8530, than my code above need addition ` if ($Matches.Port) {...
Соврал, checkbox тоже работает. не так проверял