I followed instructions here carefully however I haven't get this working right. Here is what I did:
Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
NOTE: This works on Putty
With credit to this post and this AWS forum thread, it seems the trick is to
comment out Defaults requiretty
in sudoers. My procedure now:
sudo visudo
, a special command to edit /etc/sudoers.Defaults requiretty
. Insert a hash symbol (#
) before that line to comment it out:#Defaults requiretty
:wq
to write the file and quit visudo
.In WinSCP:
sudo su -
..ppk
file).