ssh behaves different for root and users
hello
some time ago, I set up a dsa keypair not to need to enter my password everytime I ssh to my server.
this has worked fine and troublefree ever since.
today I tried to do the same for the regular user I use, in order not to need to log in as root to connect first (to avoid entering my root passwd - I'm lazy)
so I generated my key pair, copied it on both machines in ~/.ssh/, copied id_dsa.pub to authorized_keys, and tried to login. I get the following problems:
- my password is still required
- /etc/motd is displayed (it's not when I log in as root)
- ~/.bashrc is not executed. if after login I su username, .bashrc is executed fine.
how come? I checked the permissions of /home/username/.ssh/ and its contents with those of /root/.ssh/, they are the same, but I guess the problem has to do with the sshd config (since I get /etc/motd at login)
any clue someone?
|