Solved

PowerShell 5.1 SSH out - looking for key exchange

Posted on 2016-08-10
4
93 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 38

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 38

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
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…
To show how to generate a certificate request 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 Servers >> Certificates…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now