* connect to EC2 server using Tramp
[not found] <2142513103.1323440.1324259447255.JavaMail.root@sz0112a.westchester.pa.mail.comcast.net>
@ 2011-12-19 1:53 ` mcundiff1
2011-12-19 8:05 ` Michael Albinus
2011-12-19 9:22 ` Chris Van Dusen
0 siblings, 2 replies; 8+ messages in thread
From: mcundiff1 @ 2011-12-19 1:53 UTC (permalink / raw
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 238 bytes --]
Can someone give me the correct syntax for making an SSH connection to an EC2 server using tramp (from emacs)?
What do type after you C-x, C-f and are faced with the "Find file:" prompt? How do you include .pem file?
Thanks,
Morgan
[-- Attachment #2: Type: text/html, Size: 409 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 1:53 ` connect to EC2 server using Tramp mcundiff1
@ 2011-12-19 8:05 ` Michael Albinus
2011-12-19 14:17 ` mcundiff1
2011-12-19 9:22 ` Chris Van Dusen
1 sibling, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2011-12-19 8:05 UTC (permalink / raw
To: mcundiff1; +Cc: help-gnu-emacs
mcundiff1@comcast.net writes:
> Can someone give me the correct syntax for making an SSH connection to
> an EC2 server using tramp (from emacs)?
>
> What do type after you C-x, C-f and are faced with the "Find file:"
> prompt? How do you include .pem file?
I haven't used EC2 myself. But if you could show how you contact an EC2
server via ssh from a shell prompt, it shall be possible to give you the
Tramp equivalent.
> Thanks,
> Morgan
Best regards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 1:53 ` connect to EC2 server using Tramp mcundiff1
2011-12-19 8:05 ` Michael Albinus
@ 2011-12-19 9:22 ` Chris Van Dusen
2011-12-19 14:16 ` mcundiff1
1 sibling, 1 reply; 8+ messages in thread
From: Chris Van Dusen @ 2011-12-19 9:22 UTC (permalink / raw
To: mcundiff1; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 505 bytes --]
On Dec 18, 2011, at 7:53 PM, mcundiff1@comcast.net wrote:
> Can someone give me the correct syntax for making an SSH connection to an EC2 server using tramp (from emacs)?
>
> What do type after you C-x, C-f and are faced with the "Find file:" prompt? How do you include .pem file?
>
> Thanks,
> Morgan
For convenience, you can specify the location of the pem file via the IdentityFile parameter in your ssh config file. Everything else can be done with tramp's usual functionality.
Chris.
[-- Attachment #2: Type: text/html, Size: 1485 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 9:22 ` Chris Van Dusen
@ 2011-12-19 14:16 ` mcundiff1
0 siblings, 0 replies; 8+ messages in thread
From: mcundiff1 @ 2011-12-19 14:16 UTC (permalink / raw
To: Chris Van Dusen; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 846 bytes --]
Chris,
~/.ssh/config does not exist. Can I create it? What goes in it?
I do find ~/.ssh/local_hosts
Thanks,
Morgan
----- Original Message -----
From: "Chris Van Dusen" <cavandusen@gmail.com>
To: mcundiff1@comcast.net
Cc: help-gnu-emacs@gnu.org
Sent: Monday, December 19, 2011 4:22:24 AM
Subject: Re: connect to EC2 server using Tramp
On Dec 18, 2011, at 7:53 PM, mcundiff1@comcast.net wrote:
Can someone give me the correct syntax for making an SSH connection to an EC2 server using tramp (from emacs)?
What do type after you C-x, C-f and are faced with the "Find file:" prompt? How do you include .pem file?
Thanks,
Morgan
For convenience, you can specify the location of the pem file via the IdentityFile parameter in your ssh config file. Everything else can be done with tramp's usual functionality.
Chris.
[-- Attachment #2: Type: text/html, Size: 1949 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 8:05 ` Michael Albinus
@ 2011-12-19 14:17 ` mcundiff1
2011-12-19 17:26 ` Michael Albinus
0 siblings, 1 reply; 8+ messages in thread
From: mcundiff1 @ 2011-12-19 14:17 UTC (permalink / raw
To: Michael Albinus; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
Michael,
Here is how I connect via shell prompt:
sudo ssh -i mlhost.pem ec2-user@ec2-107-20-32-xxx.compute-1.amazonaws.com
Thanks,
Morgan
----- Original Message -----
From: "Michael Albinus" <michael.albinus@gmx.de>
To: mcundiff1@comcast.net
Cc: help-gnu-emacs@gnu.org
Sent: Monday, December 19, 2011 3:05:53 AM
Subject: Re: connect to EC2 server using Tramp
mcundiff1@comcast.net writes:
> Can someone give me the correct syntax for making an SSH connection to
> an EC2 server using tramp (from emacs)?
>
> What do type after you C-x, C-f and are faced with the "Find file:"
> prompt? How do you include .pem file?
I haven't used EC2 myself. But if you could show how you contact an EC2
server via ssh from a shell prompt, it shall be possible to give you the
Tramp equivalent.
> Thanks,
> Morgan
Best regards, Michael.
[-- Attachment #2: Type: text/html, Size: 1376 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 14:17 ` mcundiff1
@ 2011-12-19 17:26 ` Michael Albinus
2011-12-20 1:56 ` mcundiff1
0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2011-12-19 17:26 UTC (permalink / raw
To: mcundiff1; +Cc: help-gnu-emacs
mcundiff1@comcast.net writes:
> Michael,
Hi Morgan,
> Here is how I connect via shell prompt:
>
> sudo ssh -i mlhost.pem
> ec2-user@ec2-107-20-32-xxx.compute-1.amazonaws.com
I would do in emacs
"C-x C-f /ssh:ec2-user@ec2-107-20-32-xxx.compute-1.amazonaws.com:"
Why do you need the preceeding "sudo"? Is it mandatory for calling ssh?
In this case, we would need further configuration.
Tramp does not support the specification of identity files via the "-i"
option. Therefore, you shall add the following lines to your ~/.ssh/config:
Host ec2-107-20-32-xxx.compute-1.amazonaws.comx
IdentityFile /path/to/mlhost.pem
> Thanks,
> Morgan
Best rgards, Michael.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-19 17:26 ` Michael Albinus
@ 2011-12-20 1:56 ` mcundiff1
2011-12-20 10:23 ` Aurélien Aptel
0 siblings, 1 reply; 8+ messages in thread
From: mcundiff1 @ 2011-12-20 1:56 UTC (permalink / raw
To: Michael Albinus; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1025 bytes --]
Michael,
It worked just as you said.
Also, you were right - it did not need "sudo".
Thank you!!
Morgan
----- Original Message -----
From: "Michael Albinus" <michael.albinus@gmx.de>
To: mcundiff1@comcast.net
Cc: help-gnu-emacs@gnu.org
Sent: Monday, December 19, 2011 12:26:59 PM
Subject: Re: connect to EC2 server using Tramp
mcundiff1@comcast.net writes:
> Michael,
Hi Morgan,
> Here is how I connect via shell prompt:
>
> sudo ssh -i mlhost.pem
> ec2-user@ec2-107-20-32-xxx.compute-1.amazonaws.com
I would do in emacs
"C-x C-f /ssh:ec2-user@ec2-107-20-32-xxx.compute-1.amazonaws.com:"
Why do you need the preceeding "sudo"? Is it mandatory for calling ssh?
In this case, we would need further configuration.
Tramp does not support the specification of identity files via the "-i"
option. Therefore, you shall add the following lines to your ~/.ssh/config:
Host ec2-107-20-32-xxx.compute-1.amazonaws.comx
IdentityFile /path/to/mlhost.pem
> Thanks,
> Morgan
Best rgards, Michael.
[-- Attachment #2: Type: text/html, Size: 1447 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: connect to EC2 server using Tramp
2011-12-20 1:56 ` mcundiff1
@ 2011-12-20 10:23 ` Aurélien Aptel
0 siblings, 0 replies; 8+ messages in thread
From: Aurélien Aptel @ 2011-12-20 10:23 UTC (permalink / raw
To: mcundiff1; +Cc: help-gnu-emacs, Michael Albinus
On Tue, Dec 20, 2011 at 2:56 AM, <mcundiff1@comcast.net> wrote:
> Michael,
>
> It worked just as you said.
>
> Also, you were right - it did not need "sudo".
>
> Thank you!!
>
> Morgan
I don't know if you're aware of this but if you need to connect
frequently to the same server you can type less if you put the
following in you ssh config (~/.ssh/config):
Host myserver
Hostname ec2-107-20-32-xxx.compute-1.amazonaws.com
User ec2-user
You'll be able to connect like this:
- in the shell: $ ssh myserver
- on Emacs: C-x C-f /ssh:myserver:/path/to/file
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-12-20 10:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2142513103.1323440.1324259447255.JavaMail.root@sz0112a.westchester.pa.mail.comcast.net>
2011-12-19 1:53 ` connect to EC2 server using Tramp mcundiff1
2011-12-19 8:05 ` Michael Albinus
2011-12-19 14:17 ` mcundiff1
2011-12-19 17:26 ` Michael Albinus
2011-12-20 1:56 ` mcundiff1
2011-12-20 10:23 ` Aurélien Aptel
2011-12-19 9:22 ` Chris Van Dusen
2011-12-19 14:16 ` mcundiff1
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.