[cs615asa] Expanding ~

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


So if you dont mind me asking what does your program do when someone does
pass that variable like that?


On Mon, Mar 31, 2014 at 11:44 AM, Jin Sun <jsun6 at stevens.edu> wrote:

> dont worry about this, everyone is using absolute value
> On Mar 31, 2014 11:40 AM, "Paul-Anthony Dudzinski" <pdudzins at stevens.edu>
> wrote:
>
>> 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?
>>
>> _______________________________________________
>> cs615asa mailing list
>> cs615asa at lists.stevens.edu
>> https://lists.stevens.edu/mailman/listinfo/cs615asa
>>
>>
> _______________________________________________
> cs615asa mailing list
> cs615asa at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs615asa
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.stevens.edu/mailman/private/cs615asa/attachments/20140331/25c754e0/attachment-0001.html>


More information about the cs615asa mailing list