nelsonic / hello-world-node-http-server

The most basic possible project for testing a Web Server using Node.js http-server.
https://hello-world-node.ademo.app
6 stars 2 forks source link

ssh-add ./id_rsa.enc trouble #9

Open 0xm4ud opened 4 years ago

0xm4ud commented 4 years ago

Dear mr. Nelsonic, ive been trying to implement ssh, but i seem have hit a wall, at that phase: ssh-add ./id_rsa.enc , im asked for a passphrase, what have i missed here, mate ?

thank you for time :)

nelsonic commented 4 years ago

@m4udSec are you trying to follow the instructions in https://github.com/dwyl/learn-devops/blob/master/nodejs-digital-ocean-centos-dokku.md ?

0xm4ud commented 4 years ago

actually, i was reading an articles which makes references of you project.

nelsonic commented 4 years ago

@m4udSec so are you saying I'm famous...? ⭐️ #finally! 😜

But seriously, please share a link to the article that references, I'm really curious ... 🙏

Hopefully the link above will help you trouble-shoot where you are getting stuck. If not, please be a bit more specific with the step that is causing you a headache. In what context are you running ssh-add ./id_rsa.enc ? Are you attempting to automatically deploy from a CI? 💭 If you're using Travis-CI (the easiest one to work with), see: https://github.com/dwyl/learn-travis/blob/master/encrypted-ssh-keys-deployment.md

0xm4ud commented 4 years ago

funny you`ve mentioned mate, that is one of the few materials that mentions you, check it out at the end of the page :), and yet , fame = power, and you know what uncle Ben says about powers :) yield it well my friend !

0xm4ud commented 4 years ago

in the .travis.yaml openssl aes-256-cbc -K $encrypted_77965d5bdd4d_key -iv $encrypted_77965d5bdd4d_iv -in deploy_key.enc -out ./deploy_key -d

the error: failed and exited with 1 during funny thing is : is if do remove this part it goes through, but ssh-add ./id_rsa.enc keep hangging, because its asks for a passphrase

nelsonic commented 4 years ago

@m4udSec in the steps I wrote I had to create an ssh key without a password to get it to work. (I couldn't figure out how to do it with an ssh key that has a password ...)

0xm4ud commented 4 years ago

that .enc was derived from a key made without passphrase, that is what is bugging me !

0xm4ud commented 4 years ago

do you have a special method used to create that key with no passphrase besides just hitting enter ? by the way, thank you for helping me out, you are dealing very well with fame :)

nelsonic commented 4 years ago

Yeah, the way I created it was just hitting the [Enter] key to leave the password blank. 👍