itmti
asked on
PowerShell 5.1 SSH out - looking for key exchange
I got the SSH installed
https://github.com/PowerShell/Win32-OpenSSH/releases
When i try to ssh out:
ssh servername
or
ssh username@servername
i get this:
Unable to negotiate with 192.168.0.1: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
We are not using SSH keys to authenticate into devices,
Any way to bypass or ignore the key and just ask for username and password or just password if we specify username in the string?
Thanks
https://github.com/PowerShell/Win32-OpenSSH/releases
When i try to ssh out:
ssh servername
or
ssh username@servername
i get this:
Unable to negotiate with 192.168.0.1: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
We are not using SSH keys to authenticate into devices,
Any way to bypass or ignore the key and just ask for username and password or just password if we specify username in the string?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
There is a module for powershell that enables SSH in all versions (I think): http://www.thomasmaurer.ch/2016/04/using-ssh-with-powershell/ has info.
ASKER
Yep tried that as well, was hopping for more simple way:
typing just: ssh host
instead of: New-SSHSession -ComputerName servername
Running bash now on Windows answers pretty much all of my concerns, I really like that. All keyboard shortcuts work, etc.,
Not there is something wrong with Putty, i just seem to control everything faster and easier with less mouse clicking.
Thanks!
typing just: ssh host
instead of: New-SSHSession -ComputerName servername
Running bash now on Windows answers pretty much all of my concerns, I really like that. All keyboard shortcuts work, etc.,
Not there is something wrong with Putty, i just seem to control everything faster and easier with less mouse clicking.
Thanks!
ASKER
Been using Putty as my client works fine, thought to have it all in one from single CLI (powershell and ssh client)
Installed linux bash that works well too.
Microsoft claimed to have the ssh support on coming releases of PowerShell, guess will have to wait more.
Thanks for suggestions!