Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: linuxhelp on January 06, 2009, 03:46:32 PM
-
Hello@ALL,
i have changed the default Shell for admin with
#db accounts setprop admin Shell /bin/bash
#chsh -s /bin/bash admin
cause i don't need "console" but i want use admin
for connect to ibays over internet with WinSCP+RSA-Key+Password.
Where have i save the Directory of RSA?
/home/e-smith/.ssh?? =didn't work
/home/e-smith/files/users/admin/.ssh =did't work
the /root/.ssh/ works, but i don't want allow root access.
thanks for help
Tom
-
Solved!
enable admin Login with root rights at http://IP-server/server-manager ->Remote Access
then take putty and login as admin, if the console-screen is shown switch it off see below.
If you get a prompt the Shell is ok,
then ask for path with #pwd should be echo #/home/e-smith
now #mkdir .ssh and change rights off .ssh to 700 #chmod 700 .ssh
at this point we create a new RSA KEY for admin
#ssh-keygen -t rsa -b 2048 -f ~/.ssh/id_rsa
after some time you will be asked for a key-password take always YES
and enter a good password, cause anyone get your RSA Key (lost USBStick)
your Key is still save!
change into .ssh with # cd .ssh and list files with #ls -la
check the file rights are 600 if not change it with #chmod 600 *
create a authorized_keys file at .ssh
with #cat id_rsa.pub >> authorized_keys
and copy your private key (id_rsa) to your usbstick via SAMBA to PC or direct at server.
Download at Putty-Page the puttygen.exe with your Win-PC
and create with the RSA-KEY File and puttygen.eye a Putty.ppk file.
Now you are ready, switch back at http://IP-server/server-manager ->Remote Access
the SSH Login to "NO" Password and Admin Login and
test the Putty-Login via RSA-Key as admin..should work now..
KEEP the USBSTICK in very SAFE PLACES!!