Topic "pseudo-tty option available in WinSCP?"

Author Message
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Hello.

Unix ssh client has a option to create a pseudo-tty when establishing a new connection ( ssh -t).

Can this be done with WinSCP too?

Background:
We use a CentOS 6 and have blocked root login with SSH
I try to setup the login with WinSCP with a unprivileged user and the doing sodo like described here: https://winscp.net/eng/docs/faq_su
Problem now is that winscp cannot establish a connection because sudo is only allowed if a proper shell is created. Sudo configuration explains:
Code:
#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
#         You have to run "ssh -t hostname sudo <cmd>".
#
Defaults    requiretty

As I really do not want to expose any passwords I'd like to keep the sudo config this way.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You cannot use requiretty with WinSCP.
See https://winscp.net/eng/docs/faq_su
Skeeve
[View user's profile]

Joined: 2014-10-17
Posts: 12
Maybe this is a valid workaround for you? https://winscp.net/forum/viewtopic.php?t=14441
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
@Skeeve: Thanks for the link. I will try this eventually. For now we switched to public key based authorisation and disabled password auth. I think this way we can disable "requiretty" without breaching security.
Skeeve
[View user's profile]

Joined: 2014-10-17
Posts: 12
harkman wrote:
@Skeeve: Thanks for the link. I will try this eventually. For now we switched to public key based authorisation and disabled password auth. I think this way we can disable "requiretty" without breaching security.


Publickey is better for ssh anyway. For sudo, if you can live without the additional password - great. In my environment I can't switch it off. That's why I had to find a workaround.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License