Re: ssh connection, secondary ok while prime not
On 25/02/11 04:17, T o n g wrote:
> /etc/init.d/ssh restart
This method normally includes /etc/ssh/sshd_config when it starts the
sshd binary. The directive you are looking for in the file is probably
"PermitRootLogin yes". Adding or changing this entry in the sshd_config
file will enable you to log in remotely as the root user.
> [1] sudo ssh -C -A -X maroon
FYI, this can also been accomplished as "ssh -l root -CAX maroon" or
even as "ssh -CAX root@maroon".
> after a "/usr/sbin/sshd -d -D -p 222" on the server
Starting the SSH daemon this way will mostly likely exclude the reading
of the /etc/ssh/sshd_config file, and, as a result, not include the
"PermitRootLogin no" directive that you may have.
Hope this helps,
elbbit
Reply to: