Skip to content
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

mup doesn't work with relative pem paths #42

Closed
reduxdj opened this issue Jan 26, 2016 · 2 comments
Closed

mup doesn't work with relative pem paths #42

reduxdj opened this issue Jan 26, 2016 · 2 comments

Comments

@reduxdj
Copy link

reduxdj commented Jan 26, 2016

I had to change this from:
pem: '~/.ssh/id_rsa'

pem: '/Users/Patrick_/.ssh/id_rsa'

because of this result: open '/Users/Patrick_/app/~/.ssh/id_rsa'

@madushan1000
Copy link
Contributor

We use nodejs path module to resolve relative paths, and it doesn't support ~(~ is not a unix standard, It's just used by bash originated shells). Take a look at these two issues in nodejs nodejs/node-v0.x-archive#2857 nodejs/node#684. If someone can add this to mup using a third party library, pull requests are welcome.

PS: Mup works with relative paths like ../../yourkey fine.

@Ben305
Copy link

Ben305 commented Mar 3, 2016

Can be solved easily:

var path = require('path');
var os = require('os');
var privateKey = path.join(os.homedir(), '.ssh', 'id_rsa');

and then later with
pem: privateKey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants