Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Feb 08, 2012 7:47 am 
Offline
Newbie

Joined: Wed Feb 08, 2012 7:40 am
Posts: 2
Hi, there

I'm not sure what I've done wrong, but for some reason SFTP (note: not FTPS) is no longer working on my Wordpress blog. I type in the locations to the public and private keys, but it gives me this error: "Public and Private keys incorrect for [USERNAME]" where [USERNAME] is the user I'm logging in as.

I have disabled password logins to SSH, and enabling them has not worked either, resulting in an incorrect password error. It's very strange. This was working fine the last time I tried it, but no longer is. Perhaps my user doesn't have access to the .ssh directory? - If that's the case, how would I give it such access?

I have also tried logging in as root (and also permitting root login, as I had that disabled originally), and this also hasn't worked.

The keys are definitely, 100% correct, as I have copies on my local machine and they're identical.

I've tried chown and chmod, but to no avail.

Any ideas? Perhaps a guide to setting SSH up (I'm using libssh2) for Wordpress would be helpful. I cannot find the one I originally read online. I am running the latest version of Debian and Wordpress on Apache which is routed via Nginx.

Again, it used to work fine. The only thing that I can think of is when I deleted my user about a month ago and created it again from scratch after trying to limit SSH access to only the /srv/www/ directory.

Thanks in advance.


Top
   
PostPosted: Wed Feb 08, 2012 8:37 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Xengine wrote:
… The only thing that I can think of is when I deleted my user about a month ago and created it again from scratch…

Check the permissions on your .ssh directory (should be rwx------ [chmod 700]) and on your authorized_keys file (should be rw------- [chmod 600]).

_________________
/ Peter


Top
   
PostPosted: Wed Feb 08, 2012 8:44 am 
Offline
Newbie

Joined: Wed Feb 08, 2012 7:40 am
Posts: 2
pclissold wrote:
Xengine wrote:
… The only thing that I can think of is when I deleted my user about a month ago and created it again from scratch…

Check the permissions on your .ssh directory (should be rwx------ [chmod 700]) and on your authorized_keys file (should be rw------- [chmod 600]).


I have tried this just now and it unfortunately does not work. I still receive the "Public and Private keys incorrect" error.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group