From: Andrey Tykhonov <atykhonov@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: tramp-devel@gnu.org, emacs-orgmode@gnu.org
Subject: Re: Connect to the ssh and execute any command
Date: Mon, 16 Sep 2013 20:44:53 +0300 [thread overview]
Message-ID: <20130916174453.GA8446@demi> (raw)
In-Reply-To: <87y571p6dt.fsf@gmx.de>
On Fri, Sep 13, 2013 at 08:45:02AM +0200, Michael Albinus wrote:
> Andrey Tykhonov <atykhonov@gmail.com> writes:
>
> [Cc to tramp-devel@gnu.org, because I want to help with Tramp config]
>
> > Hi all!
>
> Hi Andrey,
>
> > During last several days I was trying to implement quite simple script
> > which:
> >
> > 1. Creates new buffer with the shell (M-x shell)
> > 2. Executes there "ssh username@domain.com". As result -- the password
> > prompt appears in the minibuffer. I manually input password.
> > 3. Then script executes any command in the recently created buffer
> > (shell), for example: "ls -la". So I expect to see directory listing on
> > the domain.com.
> >
> > but, for sorry, I cannot to do so that "ls -la" will be executed!
> >
> > I googled, I have tried many different approaches but without any luck :-(
> >
> > Here I should mention quite important thing: I cannot use TRAMP because
> > it does not work with the server to which the script connects and then
> > on which executes "ls -la". (I suppose that TRAMP uses FUSE, but for
> > sorry FUSE does not work with mine server). So TRAMP is not available
> > for me.
>
> Tramp does not use FUSE for ssh connections. Please show an example
> connection to the remote host, and how it fails.
First of all I added
(setq tramp-verbose 6)
to the ~/.emacs
Then M-x eshell, and then
cd /ssh:username@hostname:/some/existing/dir
I get password prompt, I put correct password, then get such prompt:
/ssh:username@hostname:/some/existing/dir $
Here I try to "ls -la" and get the following error:
Couldn't find a POSIX `id' command
Best regards,
Andrey.
>
> Prior to the test, you should apply
>
> (setq tramp-verbose 6)
>
> This will create a Tramp debug buffer, which shall show the problem.
>
> > Regards,
> > Andrey
>
> Best regards, Michael.
next prev parent reply other threads:[~2013-09-16 17:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-12 21:56 Connect to the ssh and execute any command Andrey Tykhonov
2013-09-12 22:16 ` Eduardo Ochs
2013-09-12 22:38 ` Eric Schulte
2013-09-13 6:45 ` Michael Albinus
2013-09-16 17:44 ` Andrey Tykhonov [this message]
2013-09-17 6:54 ` Michael Albinus
2013-09-17 19:05 ` Andrey Tykhonov
2013-09-18 6:42 ` Michael Albinus
2013-09-13 11:23 ` Suvayu Ali
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130916174453.GA8446@demi \
--to=atykhonov@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=michael.albinus@gmx.de \
--cc=tramp-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).