I run my cpanel server with Redhat Enterprise Linux 3, I'm trying to create an SSH key to use. I did this on mac os x to create the key, but apparently i didn't upload it to the cpanel server correctly. I'm trying to make a key for root, since root login is disabled through ssh by default. Using a key will allow my sftp program to connect as root "securely".
I'm still confused about generating the key. This is what I did exactly on Mac OS X:
Executed on Mac:
ssh-keygen -t rsa
2 Files Appeared in my Home Directory:
mykey & mykey.pub
Then I SSHed into my remote server:
su - (this to become root user)
[email protected] [~]# cd ~/.ssh/authorized_keys
Then Added the Contents (copy&pasted) mykey.pub here
Then followed your steps, to select "mykey" when connecting and set my username in the connection window to "root"
Keeps giving the error for wrong user/pass
I'm still confused about generating the key. This is what I did exactly on Mac OS X:
Executed on Mac:
ssh-keygen -t rsa
2 Files Appeared in my Home Directory:
mykey & mykey.pub
Then I SSHed into my remote server:
su - (this to become root user)
[email protected] [~]# cd ~/.ssh/authorized_keys
Then Added the Contents (copy&pasted) mykey.pub here
Then followed your steps, to select "mykey" when connecting and set my username in the connection window to "root"
Keeps giving the error for wrong user/pass