Solved

PowerShell 5.1 SSH out - looking for key exchange

Posted on 2016-08-10
4
134 Views
Last Modified: 2016-08-10
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
0
Comment
Question by:itmti
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
Adam Brown earned 500 total points
ID: 41751262
http://www.openssh.com/legacy.html explains the issue. Given that you're using a Windows port, the fix is probably different, if it's available at all. You can probably try the command line strings they show there, but I can't say if it will work.

What software do you have for SSH running on the servers? If it's also OpenSSH, you might want to bring that issue up on GitHUB's comments for it.
0
 

Author Comment

by:itmti
ID: 41751265
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!
0
 
LVL 39

Expert Comment

by:Adam Brown
ID: 41751277
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.
0
 

Author Comment

by:itmti
ID: 41751282
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!
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question