Operating System - HP-UX
1819876 Members
2550 Online
109607 Solutions
New Discussion юеВ

Root User not allowd in SCP

 
SOLVED
Go to solution
Virumandi
Frequent Advisor

Root User not allowd in SCP

Hi,

I am trying to copy the files from one server to the other running with Solaris

I cant able to do the copy operation as the root user but I can able to do the operation as a normal user.

While trying as the root user i got the error message permission denied.

Anybody faced this kind of problem can guide me...
6 REPLIES 6
spex
Honored Contributor

Re: Root User not allowd in SCP

Hi,

Check if "PermitRootLogin no" appears in /opt/ssh/etc/sshd_config. If so, comment it out or remove it. Then restart sshd.

PCS
Doug O'Leary
Honored Contributor
Solution

Re: Root User not allowd in SCP

Hey;

Find the sshd_config file. Not sure where it'll be under Solaris; check /etc or /usr/local/etc - or

grep sshd_config /var/sadm/install/contents

Once you've found it, check the line that says

PermitRootLogin without-password

without-passwd forces public key authentication (PKA). Yours probably says no which prevents direct root access via ssh and is the default in most implementations. "yes" is the other option which allows root access via passwords.

If you need to allow direct root access, it should be done using PKA. That's 2-factor authentication and provides significant security improvements over 1-factor authentication (passwords).

HTH;

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
HGN
Honored Contributor

Re: Root User not allowd in SCP

Hi

The file sshd_config has a line PermitRootLogin that has to be set to Yes, after this this sshd needs to be stopped and started by doing this it will not terminate the existign session's.

Rgds

HGN
Steven E. Protter
Exalted Contributor

Re: Root User not allowd in SCP

Shalom,

I can't speak for how the solaris people packaged it but by default with openssh the root user can use all functions.

It wouldn't be much of an alternative to telnet if root could not use it. ssh2 is secure and if you force ssh2 you will have reasonable assurance that you can make the changes proposed above and not have the root password get sniffed or hacked.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yogeeraj_1
Honored Contributor

Re: Root User not allowd in SCP

hi,

ensure that the environment has been properly configured.

The public key for the root user may not be present in the destination server .ssh/authorized_keys


please check

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Virumandi
Frequent Advisor

Re: Root User not allowd in SCP

Thanks to all