Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: croppa on September 11, 2006, 11:44:35 AM
-
I have been used to using remote access using key pairs to backup my work data each night to home with sme server 6.0.1 however on changeing to sme 7 the same procedure to set up seams not work.
I have $ssh-keygen -t rsa
$scp /root/.ssh/id_rsa.pub root@remote.machine:~/.ssh
$ssh root@remote.machine
$cd .ssh
$cat id_rsa.pub >>authorized_keys2
$chmod go-w authorized_keys2
Then turn off access with passwords
This works with 6.0.1 But does not seam to with sme7
Is anyone able to help please.
also how do you allow a user (other than root)ssh in? Changing the passwd file does not seam to work like sme6.0.1
Thanks again
Stuart
-
I have been used to using remote access using key pairs to backup my work data each night to home with sme server 6.0.1 however on changeing to sme 7 the same procedure to set up seams not work.
I have $ssh-keygen -t rsa
$scp /root/.ssh/id_rsa.pub root@remote.machine:~/.ssh
$ssh root@remote.machine
$cd .ssh
$cat id_rsa.pub >>authorized_keys2
$chmod go-w authorized_keys2
Then turn off access with passwords
This works with 6.0.1 But does not seam to with sme7
Is anyone able to help please.
also how do you allow a user (other than root)ssh in? Changing the passwd file does not seam to work like sme6.0.1
Thanks again
Stuart
Have you tried wellsi's howto (http://no.longer.valid/phpwiki/index.php/SSH%20Public-Private%20Keys)?
-
Thanks cactus
I have used that method with SME 6.0.1 however I have had no luck with SME 7.
it comes back with *Permission denied (publickey).* When passwords are turned off or asks for a password if they are turned on.
Stuart
-
I ran into the same problem. I fixed it by changing the shell to bash for the user I was trying to log in as.
-
Thanks crazybob. That worked in SME 6.0.1 to allow a user to ssh in but seams not to work in SME 7
Thanks
Stuart
-
I used that on SME 7.0, but I could not login as root. I had to login as another user and su to get root control.
Bob
-
Thanks all working perfectly now
Stuart
-
Thanks all working perfectly now
Stuart
did you make any changes? Can we know what they where, so that we can avoid the problems?