Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New OpenSSH 7.1p1 does not work in PowerShell #638

Closed
thomaskonrad opened this issue Jan 15, 2016 · 10 comments
Closed

New OpenSSH 7.1p1 does not work in PowerShell #638

thomaskonrad opened this issue Jan 15, 2016 · 10 comments

Comments

@thomaskonrad
Copy link
Contributor

Hi,

I just upgraded OpenSSH because of the latest vulnerability. On my machine, SSH now does not work any more in PowerShell. When I try to open a connection, it just quits without any output:

~ $ ssh myserver.local
~ $

However, SSH works in the old cmd.exe command shell. Does anybody experience the same thing? I'm using Windows 10.

Thanks
Thomas

@lukesampson
Copy link
Member

I've moved openssh back to the old 5.4p1-1 version for now. You'll need to run scoop uninstall openssh; scoop update; scoop install openssh to go back because scoop update openssh won't work for an older version than the one you have installed.

@perplexedfingers
Copy link
Contributor

I would love to use ssh with ed25519 rather than rsa for better security and faster generation speed, but ssh begins to support this type of key since v6.4.
I tried scoop uninstall openssh; scoop update; scoop install openssh as suggested, but I still got old 5.4p1-1.
Any other suggestion?

@lukesampson
Copy link
Member

You might want to try scoop install git-with-openssh. I'm not sure about ed25519 support, but it's a much newer version of OpenSSH.

$ ssh -V
OpenSSH_7.3p1, OpenSSL 1.0.2h  3 May 2016

@perplexedfingers
Copy link
Contributor

Thanks. I have ssh with version number 7.3p1 and ed25519 key working.
But there is no ssh-add, and other friends for me.

installing git-with-openssh (2.10.0.windows.1)
downloading https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/PortableGit-2.10.0-64-bit.7z.exe#/dl.7z...(29.4 MB) done
checking hash...ok
extracting...done
creating shim for git
creating shim for gitk
creating shim for git-gui
creating shim for ssh
creating shim for sshd
creating shim for scp
creating shim for sftp
creating shim for slogin
can't shim usr\bin\slogin.exe: file doesn't exist

Is there any other information I need to provide?

@lukesampson
Copy link
Member

That missing slogin.exe was causing ssh-add etc not to be linked in correctly. I've fixed that now.

You need to run scoop update;scoop uninstall git-with-openssh;scoop install git-with-openssh to get the fix.

@perplexedfingers
Copy link
Contributor

Still failed.
How can I make sure I have got the latest scoop bucket file?

~ $ scoop update;scoop uninstall git-with-openssh;scoop install git-with-openssh
updating scoop...
scoop was updated successfully!
uninstalling git-with-openssh (2.10.0.windows.1)
git-with-openssh was uninstalled
installing git-with-openssh (2.10.0.windows.1)
loading https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/PortableGit-2.10.0-64-bit.7z.exe#/dl.7z from cache...
checking hash...ok
extracting...done
creating shim for git
creating shim for gitk
creating shim for git-gui
creating shim for ssh
creating shim for sshd
creating shim for scp
creating shim for sftp
creating shim for slogin
can't shim usr\bin\slogin.exe: file doesn't exist

@deevus
Copy link
Member

deevus commented Sep 29, 2016

scoop update

On Thu, Sep 29, 2016 at 1:15 PM 朱震庭 notifications@github.com wrote:

Still failed.
How can I make sure I have got the latest scoop bucket file?

~ $ scoop update;scoop uninstall git-with-openssh;scoop install git-with-openssh
updating scoop...
scoop was updated successfully!
uninstalling git-with-openssh (2.10.0.windows.1)
git-with-openssh was uninstalled
installing git-with-openssh (2.10.0.windows.1)
loading https://github.com/git-for-windows/git/releases/download/v2.10.0.windows.1/PortableGit-2.10.0-64-bit.7z.exe#/dl.7z from cache...

checking hash...ok
extracting...done
creating shim for git
creating shim for gitk
creating shim for git-gui
creating shim for ssh
creating shim for sshd
creating shim for scp
creating shim for sftp
creating shim for slogin
can't shim usr\bin\slogin.exe: file doesn't exist

You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#638 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA0QgrXPzqSdpWGfsNM8CNmJ5QFiRXd7ks5quy1igaJpZM4HFh8A
.

@lukesampson
Copy link
Member

If you've updated, the manifest should be at ~/appdata/local/scoop/apps/scoop/current/bucket/git-with-openssh.json, and it shouldn't mention slogin.exe.

@perplexedfingers
Copy link
Contributor

perplexedfingers commented Sep 29, 2016

Works now.
Thanks for the lightening-fast response.

@rasa
Copy link
Member

rasa commented Mar 12, 2018

This issue appears to have been resolved. If not, please reopen this ticket, or let us know. Thanks!

@rasa rasa closed this as completed Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants