Win32-OpenSSH icon indicating copy to clipboard operation
Win32-OpenSSH copied to clipboard

where is ssh-copy-id as I could not find it in windows 10 1903

Open tlsalex opened this issue 6 years ago • 12 comments

It works quite well to use ssh.exe, scp ... in windows 10 1903 , but I didn't find ssh-copy-id , will add to this repo in the future ?

tlsalex avatar Sep 26 '19 13:09 tlsalex

This worked in Win7 and 8.0 but on the newest stable of Win10 plus 8.1, the command is no longer recognized. I want to transfer a public key to a server of mine that isn't hooked into an LDAP provider. This command did work before so I expect it to continue working. Bringing to attention of @manojampalam

WSLUser avatar Mar 16 '20 17:03 WSLUser

This is not supported.

maertendMSFT avatar Jun 26 '20 22:06 maertendMSFT

So you're choosing to drop functionality that used to exist? Seriously? Is it due to resources? Then add more. MS has the money to bring more support to this project and it should. This is an expected feature and it already worked so precedent set. This should be considered a regression that MS feels obligated to resolve for its users

WSLUser avatar Jun 26 '20 22:06 WSLUser

@WSLUser - I don't think ssh-copy-id is ever supported by windows openssh fork. Not even in windows 7.

bagajjal avatar Jun 26 '20 23:06 bagajjal

reopening this issue so we can keep track of the discussion.

bagajjal avatar Jun 26 '20 23:06 bagajjal

I actually did use it before on Win 7 and it worked. It was very convenient for a stand-alone server that isn't hooked up into the central LDAP server to get my ssh keys over. There are a few servers like that due to their functionality and all require acounts to be locally created. Since my pub key isn't being pushed to those servers from the LDAP provider, using this functionality helped get my ssh keys over. Once I switched to Win 10 and also bumped to the 8.1, I found myself needing to use this command again but it didn't recognize the command anymore.

WSLUser avatar Jun 27 '20 02:06 WSLUser

So I'm not sure what changed and perhaps the functionality wasn't intended to work but it did. So if it needs explicit support in the win32 code, then I think it should get it. I can verify that the ssh provided by Git Bash does support it so that does prove it can be enabled more officially.

WSLUser avatar Jun 27 '20 02:06 WSLUser

I am very sure we never had it working. May be you have used it from other sources. I will add to backlog for now. We will prioritize later.

bagajjal avatar Jun 27 '20 04:06 bagajjal

@bagajjal this ticket is confusing. Is this ticket for ssh-copy-id not being part of the binary distribution? man you guys got to be more clear please.

davidgarciaMontreal avatar Dec 14 '20 23:12 davidgarciaMontreal

This issue is meant for having a similar utility like ssh-copy-id as part of win32-openssh. You can't use the ssh-copy-id script to copy and set the file permissions on to a windows machine. ssh-copy-id is a bash script that assume Linux environment is present on the target machine.

bagajjal avatar Dec 15 '20 00:12 bagajjal

I second this request. Win32 OpenSSH should ship a ssh-copy-id utility. This would be especially handy now that Git for Windows supports external SSH binaries, e.g. these ones.

Git for Windows ships its own version of ssh-copy-id, however, only if external SSH binaries are not selected. Also Git ssh-copy-id is not necessarily compatible with Win32 binaries or e.g. Powershell.

Okeanos avatar Aug 14 '21 12:08 Okeanos

Approaching 3 years and still no movement on this.

What a joke.

TreeBranches avatar Apr 26 '24 10:04 TreeBranches