rm -fr /root/.ssh
cp ~user2/.ssh /root
chown -R root:wheel /root/.ssh
chmod 700 /root/.ssh
chmod 600 /root/.ssh/*
chmod 700 /root
ssh -l user1 mybox
Problem solved. I forgot to edit /root/.ssh/config
I still not sure why user recreation worked, but I don't care anymore.
Thank you for all you
Laszlo Nagy wrote:
Have you checked /var/log/auth.log on machine to which you are trying to
connect?
It contains nothing except:
Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from
81.1.19.245 port 54369 ssh2
Sorry it was:
Aug 30 13:54:19 box1 sshd[8199]: Accepted publi
Have you checked /var/log/auth.log on machine to which you are trying to
connect?
It contains nothing except:
Aug 30 13:54:19 box1 sshd[8199]: Accepted publickey for user2 from
81.1.19.245 port 54369 ssh2
Now here is what I did:
1. I deleted user2 with "rmuser user2", but I did not de
On Thu, Aug 30, 2007 at 06:57:54PM +0200, Laszlo Nagy wrote:
>
>>
>> Hi Laszlo.
>>
>> Isn't it just a matter of adding "PasswordAuthentication no" to
>> /etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.]
>>
>> I'll check one of my old systems later but I think that's it...
> We
On Thu, 30 Aug 2007, Adam J Richardson wrote:
Laszlo Nagy wrote:
Well, I have other users using public keys for logging in so the sshd config
must be correct.
This is the only user that doesn't work. I can login by typing in the
password but I need to login automatically.
Best,
Laszlo
We
Laszlo Nagy wrote:
Well, I have other users using public keys for logging in so the sshd
config must be correct.
This is the only user that doesn't work. I can login by typing in the
password but I need to login automatically.
Best,
Laszlo
Well, then perhaps the user is wrongly configured.
Hi Laszlo.
Isn't it just a matter of adding "PasswordAuthentication no" to
/etc/ssh/sshd_config? [At the server end, Captain Obvious prompts me.]
I'll check one of my old systems later but I think that's it...
Well, I have other users using public keys for logging in so the sshd
config mus
Laszlo Nagy wrote:
Hi,
I have to boxes, both are FreeBSD 6.2 -p7. I did this:
What is the problem? I could do the same with other computers/users
without problem. I'm sure that I do something wrong.
Thanks,
Laszlo
Hi Laszlo.
Isn't it just a matter of adding "PasswordAuthentication
Hi,
I have to boxes, both are FreeBSD 6.2 -p7. I did this:
[EMAIL PROTECTED]:
ssh-keygen -t dsa
mv ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
chmod 640 ~/.ssh/authorized_keys
scp ~/.ssh/id_dsa [EMAIL PROTECTED]:~/.ssh
[EMAIL PROTECTED]:
mkdir .ssh
cat > .ssh/config
host mybox
hostname b