Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tramp mode in emacs using ssh config

Tags:

emacs

ssh

tramp

I think this is very basic question in using tramp, but it doesn't work for me. I have my ~/.ssh/config file that points to my amazon ec2 machine

Host amazon
   Hostname xxxx.amazonaws.com
   Port yyy
   User me
   IdentityFile ~/.ssh/ubuntu
   ForwardAgent yes

I can easily do ssh amazon from my terminal and I go to amazon ec2 (so my config is right), but in emacs I do:

C-x C-f /ssh1:amazon:

I always get this error In Aquamacs:

Process *tramp/ssh1 amz* exited abnormally with code 255

In Emacs:

tramp: Opening connection at amz using ssh1...
tramp: Waiting for prompts from remote shell
tramp: Waiting 60s for prompt from remote shell
tramp-process-actions: Login failed

I also have other ssh configurations that they ssh to my virtual boxes on my local machine and they have the same problem.

I really appreciate any help.

like image 459
Matilda Avatar asked Mar 28 '12 04:03

Matilda


1 Answers

One thing that's worth trying is using the sshx connection method. That makes tramp try to avoid any non-standard shell configuration on the remote host.

Like this:

C-x C-f /sshx:amazon:
like image 135
legoscia Avatar answered Oct 06 '22 07:10

legoscia