Hi,
Could someone help me with how to refernce the SSH key I made (at Pinggy’s suggestion) in the startup script? I can’t quite get the syntax right and I keep getting prompted for a password.
Thanks!
Hi,
Could someone help me with how to refernce the SSH key I made (at Pinggy’s suggestion) in the startup script? I can’t quite get the syntax right and I keep getting prompted for a password.
Thanks!
I am following the content under “It is asking me for a password” on this page:
I found this script generator on Pinggy support, but don’t know where my SSH key is be default, if I can move it to my “Pinggy” directory, and in either case, how to reference it in my script.
EXAMPLE FROM PINGGY PAGE
ssh -p 443 -o StrictHostKeyChecking=no -o ServerAliveInterval=30 -t -R0:127.0.0.1:8000 a.pinggy.io "k:samplekey"
Where is “k:samplekey”? How do I modify for my key location?
Thanks!
If you generate an ssh key, it should be detected by default. Is the startup script being executed as a different user? In that case, it might be an issue.
Can you specify whether you are using Windows / Mac / Linux ?
Thanks for the response. The SSH key was created by the same user executing the script – and the user is an admin on the computer. I thought maybe I had to run the SSK create command from teh directory I wanted it created in, but it seems to create in a default Windows location somewhere and I didn’t know if the startup script knew to look there or if i had to specify the path in that last parameter at the end of the script?
When I created the SSH key it asked for a name, and I called it “Pinggy”. Would I change the script to end with “k:pinggy”? I don’t know if “k:” is a mapped drive or some internal refernce to where the keys are stored?
Sorry for the rambling and random thoughts, I’m way out of my area of expertise.
Forgot to answer your O/S question – this is Windows. I used the Pinggy wizard to create the script as SSH-CMD.
We are very sorry that you are facing this issue.
You dont need to put the “k:pinggy” argument in the script. That is for enabling Bearer token authentication for your tunnel, and is unrelated to the ssh key.
I think while generating the ssh key you have set a password for it. If you remember the name of the ssh key, then please delete that one.
Create a new ssh key with the command: ssh-keygen
Press Enter key (Return key) till the command finishes.
Go through this guide essentially: Run Tunnel on Startup for Windows