Solved

PowerShell 5.1 SSH out - looking for key exchange

Posted on 2016-08-10
4
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 41

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 41

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

696 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