Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

0
SSH problems
Post Body

Whenever I attempt to ssh into my sshd server running on another computer. I've been having problems. I previous was running this with passwords, but figured I should switch to rsa keys for greater knowledge on ssh as well as performing X11 forwarding (pesky work filters and all).

Whatever I've done so far I receive this error:

Permission denied (publickey).

Someone recently told me to double check my permissions and that the server is running as root. Permisions seemm to line up with what they told me although I'll include rsa_host_key is set to 700 and rsa_host_key.pub is 744. I presume this is root because I'm running it as a systemd service and that is typically the default.

So here is what I get if I try to use:

ssh-copy-id -i ~/.ssh/id_dsa.pub user@server

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
Permission denied (publickey).

I manually copy the key to the authorized_keys by usb the system works. What is stopping me from copying the key properly across the from outside the server?

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
29,182
Link Karma
9,620
Comment Karma
19,547
Profile updated: 1 week ago
Posts updated: 10 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
9 years ago