No root login

Advertisement

shahidr100
Joined:
Posts:
4

No root login

Hi
I frequently need to download and upload files to and from a Linux Server.

Root login is disabled at Linux server so I have to login as a normal user and then go to super user to come to root. After that I do a WinSCP session and transfer files. This whole process is bit cumbersome.

Isn't there any method in WinSCP through which I can do it at one go and I do not have to log in to Linux server first to allow root login and then login thru WinSCP.

Thank you

Reply with quote

Advertisement

shahidr100

Re: No root login

@martin: To allow root login to WinSCP, first I login to the Linux server as a normal user using putty. Then I do a super user. Edit the sshd_config file to allow root login. Then I restart the sshd daemon. Then I log off from PuTTY. Now I log in as root using WinSCP.

Shahid

Reply with quote

shahidr100
Joined:
Posts:
4

Re: No root login

Hello,

Thanks for your reply, however, the method specified in FAQ is not working. I tried it couple of times. I am allowed to sudo from command line easily.

Please help.

Reply with quote

Advertisement

shahidr100
Joined:
Posts:
4

Re: No root login

Hi,

It's working now. Actually I didn't select "SCP" as a protocol that is why it was not working.

Thank you so much.

Reply with quote

Guest

Re: No root login

I logged in to my internet server with PuTTY and did the super user thing, but when I start WinSCP on my client I still have no permissions. How did you manage to get the permissions?

Regards, Frank

Reply with quote

Zsolt
Guest

Re: No root login

I configured my system exactly according to your suggestions @martin, spent hours, but my connection still times out when I get to sudo su. I am a programmer/developer and admin on several servers, but could not figure this out. Would you mind, just for us lowly mortals, kindly put together a DETAILED step-by-step instruction that is more specific than the very vague FAQ you always refer to?

THANKS!!! Zsolt

Reply with quote

Advertisement

Zsolt
Guest

Re: No root login

@martin: Ok, so you enter the shell command in WinSCP, make sure that you can sudo su without being prompted for a root password, you start a WinSCP session by logging in through a non-priviliged account... and then what?

Thanks. Zsolt

Reply with quote

peterbata
Joined:
Posts:
1
Location:
Canada

Still no luck

I have set PermitRootLogin to yes in my Ubuntu sshd_config file and I am still unable to log in as root from within WinSCP. I can log in as root from the CLI because I am using my public key to do so. Thank you

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Still no luck

@peterbata: Please be more specific. The "unable to log in" is not very clear. Do you get some error? If you can login as root with PuTTY, you must be able to login with WinSCP. Consider post a log file.

Reply with quote

Advertisement

You can post new topics in this forum