The gpssh-exkeys
command returns the following error:
[root@mdw gpadmin]# gpssh-exkeys -f /home/gpadmin/gpconfigs/hostfile_exkeys [STEP 1 of 5] create local ID and authorize on local host ... /root/.ssh/id_rsa file exists ... key generation skipped [ERROR mdw.company.com] authentication check failed: Permission denied (publickey,password). [ERROR] cannot establish ssh access into the local host?
no
in the /etc/ssh/sshd_config
. When PermitRootLogin is set to no
in the /etc/ssh/sshd_config
, follow the steps below to restart sshd
./etc/ssh/sshd_config
:
#PermitRootLogin no
service sshd restart
no
by default in /etc/ssh/sshd_config
, the required permissions for SSH are as follows:chmod g-w /home/your_user chmod 700 /home/your_user/.ssh chmod 600 /home/your_user/.ssh/authorized_keys