How to mount a folder on amazon ec2 instance with private key using sshfs -
i trying mount folder on amazon ec2
instance desktop folder using sshfs
.
the problem not able figure out how give option private key (awskey.pem).
normally ssh
using
ssh ec2-user@{amz-ip-address} -i {path amzkey.pem}
but sshfs
has no such options. saw -f
option , tried
sshfs ec2-user@{amz-ip-address}:{amz-folder} {my mount dir} -f {path amzkey.pem}
this gave me error
"read: connection reset peer"
please let me know if has tried before.
from documentation:
if using non-default key names , passing
-i .ssh/my_key
, won't work. have use-o identityfile=/home/user/.ssh/my_key
, full path key.
Comments
Post a Comment