-
Notifications
You must be signed in to change notification settings - Fork 108
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
First time failure, second time partial success #6
Comments
I have not seen that before. If you could remove them and try again just to confirm? Thanks. |
I guess there's no harm in showing my public key here. The line I see this time, on getting the same exact behaviour on a different server, is:
Again, running the script again gives another exit code 1 but the correct line is written to authorized_keys. It seems possible it's to do with accepting the server's key in the same session. |
Hmm thanks for your help. I will see if I can repro. |
I also have this issue. Running
...Which is causing the issue. For this script to work properly, I would expect the command to yield the same thing as
|
After getting the script working and posting the findings in #5, I ran the script again on a different server (one I had never connected to, and so I had to accept the server key, if that makes a difference). I typed the password as requested and it exited with code 1 and no output again. I tried to log in with ssh and it prompted me for the password again. On logging in I inspected authorized_keys and saw that it had a bizarre line as follows (with my correct public key partially replaced with stars and a seemingly corrupt key (or is it the server's key? transmountain is part of the hostname) partially replaced with hashes):
I then logged out and ran the script again. This time it exited with code 1 again, but when I tried to ssh in to the server again, it worked. Now there is a second line in authorized_keys identical to the tail section of the above:
No idea what is happening here. If you request I could remove my keys and acceptance of the server's key and try again.
The text was updated successfully, but these errors were encountered: