[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Don't send "exec" command on login
From: |
Michael Albinus |
Subject: |
Re: Don't send "exec" command on login |
Date: |
Wed, 18 Feb 2009 22:22:52 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Rolando Pereira <address@hidden> writes:
> Hello,
Hi,
> I need to connect to a server X that I can only connect after
> connecting to another server Y first.
>
> As I understand from reading the documentation, I can do multi-hops
> using proxies. The problem is that the Y server has a weird shell that
> only accepts the following commands:
> ssh, telnet, who, last, passwd, help, version, quit, exit, and logout
>
> So when tramp trys to run
> tramp-open-connection-setup-interactive-shell and send the string
> "exec env ENV='' PROMPT_COMMAND='' PS1='$ ' PS2='' PS3='' %s" it
> hangs.
>
> If I try to change that string to "ssh X", it works, but since the
> shell at Y can't add the server key to the known_hosts file, I have to
> type and addicional "yes" (because of the "Are you sure you want to
> continue connecting (yes/no)?") plus send the password again.
You should only need to send the "ssh X" command. The handling of the
"Are you sure ..." dialogue shall happen via `tramp-process-actions'.
Which Tramp/Emacs versions are you using? Could you, please, send me the
traces with level 6?
Best regards, Michael.