-
Notifications
You must be signed in to change notification settings - Fork 22
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
User creation script fails to create temp file on Cygwin #84
Comments
@jordanbtucker Looks like the account got created:
Try running If this works, I will edit the bug report to reflect that this is an issue with failing to create a temporary file and bailing out. |
Yes, the account got created, but it looks like the key was not transferred. jordan@mara ~ $ ssh jordanbtucker@sf1.hashbang.sh
Agent admitted failure to sign using the key.
Permission denied (publickey).
jordan@mara ~ $ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Apr 29 15:30 /bin/sh -> dash |
@jordanbtucker No, creating a user and setting the key is done in a single API call.
Did you modify |
I've verified that the keys match, and they work when SSHing from my Windows to my Linux machine. On Linux: # get modulus from private key and hash
jordan@mara ~ $ openssl rsa -in ~/.ssh/id_rsa -noout -modulus | openssl sha1
(stdin)= 214df9e992e945312e1b28baa83f03382c80d395
# convert public key to OpenSSL format, get modulus, and hash
jordan@mara ~ $ ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 | openssl rsa -pubin -noout -modulus | openssl sha1
(stdin)= 214df9e992e945312e1b28baa83f03382c80d395
# ~/.ssh listing
jordan@mara ~ $ ls -Al ~/.ssh/
total 20
-rw-r--r-- 1 jordan jordan 398 Apr 29 18:50 authorized_keys
-rw-r--r-- 1 jordan jordan 125 Apr 29 17:27 config
-rw------- 1 jordan jordan 1675 Apr 29 15:19 id_rsa
-rw------- 1 jordan jordan 398 Apr 29 15:19 id_rsa.pub
-rw-r--r-- 1 jordan jordan 764 Apr 29 16:57 known_hosts On Windows: # get modulus from private key and hash
{ ~ } » openssl rsa -in ~/.ssh/id_rsa -noout -modulus | openssl sha1 ~
(stdin)= 214df9e992e945312e1b28baa83f03382c80d395
# convert public key to OpenSSL format, get modulus, and hash
{ ~ } » ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 | openssl rsa -pubin -noout -modulus | openssl sha1
(stdin)= 214df9e992e945312e1b28baa83f03382c80d395
# ~/.ssh listing
{ ~ } » ls -Al ~/.ssh ~
total 5
-rw-------+ 1 Jordan Jordan 1675 Apr 29 15:19 id_rsa
-rw-rwxr--+ 1 Jordan Jordan 398 Apr 29 15:19 id_rsa.pub
# ssh into Linux machine from Windows machine using keys
{ ~ } » ssh jordan@mara ~
Welcome to Linux Mint 17.3 Rosa (GNU/Linux 3.19.0-32-generic x86_64)
Welcome to Linux Mint
* Documentation: http://www.linuxmint.com
Last login: Fri Apr 29 18:53:13 2016 from vader.deathstar |
And now I created a second account |
@jordanbtucker No problem. Also, the error you get is definitely not normal. |
@jordanbtucker The first run was not on Linux, right?
Which platform was that (msys? cygwin?), and how did you execute the script? |
@jordanbtucker OK. Somebody who has access to a Windows box (I don't) will have to reproduce the issue and fix it. |
The text was updated successfully, but these errors were encountered: