CentOS 7, Emacs 27.1
Here content of file myFile.sh:
ssh [email protected]
So when in vterm mode I use this:
./myFile.sh
then I success connect to the remote machine (ip = 10.111.11.111) by Tramp mode.
Nice.
Now I want to run myFile.sh in dired mode. Here folder with myFile.sh in dired mode.
So I try
! (dired-do-shell-command)
As result in the minibuffer show.
Then in the minibuffer I input
./myFile.sh
and press Enter.
But I get error:
Pseudo-terminal will not be allocated because stdin is not a terminal.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
./myfile.sh
from a vterm does not mean you are using Tramp to connect to the remote: all it means is that you have an ssh connection to the remote, the same as if you were doing it in a terminal outside of emacs. If you want to open a Tramp connection, then just doC-x C-f /scp:[email protected]:
or something similar.