[cs615asa] Expanding ~

Paul-Anthony Dudzinski pdudzins at stevens.edu
Mon Mar 31 11:40:40 EDT 2014


Hello,
I am running into a bit of trouble when I try to override the ssh flags in
my program when I pass ~ for the home directory:

So if I do

export EC2_BACKUP_FLAGS_SSH="-i ~/.aws/lnxLab.pem"

and then run the program I get:

Warning: Identity file ~/.aws/lnxLab.pem not accessible: No such file or
directory. Warning:  Permanently added '
ec2-54-85-193-109.compute-1.amazonaws.com,54.85.193.109' (ECDSA) to the
Permission denied (publickey).


However when I pass the absolute path it works just fine. My intuition is
that ssh might be looking in /etc/passwd for my home directory (where I
have no entry on lnxlab) and then looking for the literal file :
~/.aws/lnxLab.pem when it doesnt find a home directory for my user id.

Is anyone else having this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.stevens.edu/mailman/private/cs615asa/attachments/20140331/f7c41162/attachment.html>


More information about the cs615asa mailing list