Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Error in Log sudo: no tty present and no askpass program specified

Marat wrote:

Where is the place to turn off it?

In sudoers file. Typically in /etc/sudoers. As the FAQ says.
Marat

Re: Error in Log sudo: no tty present and no askpass program specified

Where is the place to turn off it?

martin wrote:

You need to turn off sudoers option requiretty.
See https://winscp.net/eng/docs/faq_su
martin

Re: Error in Log sudo: no tty present and no askpass program specified

You need to turn off sudoers option requiretty.
See https://winscp.net/eng/docs/faq_su
toomanylogins

Error in Log sudo: no tty present and no askpass program specified

I am trying to connect as root to clean install of ubuntu 16.10 LTS. I have amended the etc/ssh/sshd_config to PermitRootLogin without-password. I can login using scp and shell set to default without problem.

If I change shell to sudo su - I get this error in log. Therefore cant login as root and edit files. In terminal I can sudo with a problem.
Thanks
Paul
see below

Started a shell/command

. 2019-03-20 10:55:26.545 --------------------------------------------------------------------------
. 2019-03-20 10:55:26.545 Using SCP protocol.
. 2019-03-20 10:55:26.546 Doing startup conversation with host.
. 2019-03-20 10:55:26.599 Skipping host startup message (if any).
> 2019-03-20 10:55:26.599 echo "WinSCP: this is end-of-file:0"
! 2019-03-20 10:55:26.599 sudo: no tty present and no askpass program specified
. 2019-03-20 10:55:28.553 Server sent command exit status 1
. 2019-03-20 10:55:28.554 Disconnected: All channels closed
* 2019-03-20 10:55:28.614 (EFatal) **Connection has been unexpectedly closed.** Server sent command exit status 1.
* 2019-03-20 10:55:28.614 Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).