Ssh (sftp) with certificate through Nautilus in Ubuntu 10.10

Before I connected to my server through Nautilus (sftp). Now I switched to Amazon EC2, and there is only one way to connect to the server (ubuntu 10.10 too) using ssh -i mycert.pem, not a password, but only a certificate. How can I connect to the server using Nautilus as before? In another way, I can disable the certificate by making some changes to / etc / ssh / ssh _config, but I'm not sure what to do.

UPD: Finally, I found a solution using sshfs, here are more explanations. How to mount Amazon ec2 drive locally - fuse + sshfs?

and googling for keywords sshfs + amazon ec2

UPD2:

ssh-add /path/to/my_cert.pem

and after this connection with sftp through nautilus also work fine

+5
source share
1 answer

I don’t quite understand what you mean by “I think I can disable the certificate” when you just said “and is there only one way to connect [...] only the certificate”?

I think you would like to have something similar in .ssh / config. Add a section similar to the following 5 lines to any existing ~ / .ssh / config file (i.e. /home/sehe/.ssh/config)

Host myec2host
HostName 151.47.12.88
User ubuntu
IdentityFile ~/.ssh/mycert.pem
Compression yes

Note

  • Replace with the myec2hostalias that you want to get to the ec2 instance,
  • Replace the IP address with the external (optionally elastic) IP address of your instance
  • ~/.ssh/mycert.pem ( ), ; mycert.pem , , ,
  • (, ) . Ubuntu ec2 ( Canonical) ubuntu; root

, man ssh_config . , http://alestic.com/ - Ubuntu + EC2 ( , Alestic Canonical). , google ec2ubuntu, .


, Nautilus "my3c2host" reset . , ( , gpg-agent... dunno ).

+7

All Articles