Quote:
Originally Posted by Serophis
Below is everything. From what I could tell, the permissions on authorized_keys seems to be wrong. Alas, my head is spinning. Also, I am very thankful for the help so far. You have patience, friend!
|
First of all about problems I see at the moment:
1. You have 2 lines PasswordAuthentication in sshd_config in laptop:
Code:
PasswordAuthentication no
PermitEmptyPasswords no
PasswordAuthentication no
remove one of this duplicate lines
2. Change sshd_config of your laptop as follows:
Code:
RSAAuthentication yes
PubkeyAuthentication yes
PasswordAuthentication yes
UsePAM yes
Pay your attention to comment in sshd_config of laptop: "WARNING: 'UsePAM no' is not supported in Fedora and may cause several problems."
3. Your ssh -vvvv says that you are trying to connect from server to itself (to localhost = 127.0.0.1), but not to laptop (192.168.0.193), look:
Code:
debug1: Connecting to localhost [127.0.0.1] port 22
4. Your secure log from laptop says:
Code:
Authentication refused: bad ownership or modes for file /home/backuppc/.ssh/authorized_keys
I suggested already to remove this file as there is a high probability that this file has some mistakes, as you edited it manually - this file is not so simple as some guys consider. But before removing the file try to fix ownership - it must be owed by user backuppc and has 644 access rights, just do as root:
Code:
chown backuppc:backuppc /home/backuppc/.ssh/authorized_keys
chmod 644 /home/backuppc/.ssh/authorized_keys
5. Another thing I see - changed (not default) identity files location /var/lib/backuppc/.ssh/ at your server (your ssh-client with Debian, not Fedora). If this location is not what you expects, you can change it at your server in /etc/ssh/
ssh_config (not the same as /etc/ssh/
sshd_config !!!) by changing lines
IdentityFile inside this file, for example:
Code:
IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
IdentityFile ~/.ssh/id_dsa
if you want to have default location of your ssh identity files.