Link to home
Start Free TrialLog in
Avatar of itmti
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
ASKER CERTIFIED SOLUTION
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of itmti
itmti

ASKER

Just trying to use PowerShell to SSH to networking devices like switches, firewalls, routers etc.,   not necessarily linux servers.

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!
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.
Avatar of itmti

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!