?
Solved

PowerShell 5.1 SSH out - looking for key exchange

Posted on 2016-08-10
4
Medium Priority
?
197 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 42

Accepted Solution

by:
Adam Brown earned 2000 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 42

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

Are your AD admin tools letting you down?

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

This article will help to fix the below error for MS Exchange server 2010 I. Out Of office not working II. Certificate error "name on the security certificate is invalid or does not match the name of the site" III. Make Internal URLs and External…
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
In this video we show how to create a mailbox database 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 >> Data…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses
Course of the Month12 days, left to enroll

752 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