Hi All, I cant seem to post a new thread, so here it is.
A quick checklist - similar to the last one, but specifically for SME7
0. Read the docs! Understand the dangers of this procedure!
1. In server-manager, goto Security, Remote access
2. Change Secure Shell Access to "Allow access only from local networks"
3. Change Allow administrative command line access over secure shell to "Yes"
4. Go to your console, log in as root.
5. type
ssh-keygen -t rsa
and answer the questions. Remember the passphrase ( you should NOT use your root password ) - this creates two files in your ".ssh" folder; id_rsa and id_rsa.pub
6. type
cat .ssh/id_rsa >> .ssh/authorized_keys
- this says to SME "allow this key to be used for authentication.
7. copy the private key ( .ssh/id_rsa ) to your winblows machine - how you do this is up to you, but i prefer to
cp .ssh/id_rsa /home/e-smith/files/users/[myusercode]/home
and then pick it up from my winblows box by browsing to
\\sme\[myuesrcode]\
.
DONT leave it hanging around in insecure places!
8. Convert your key to a putty format. Open puttygen, click "Conversions", "Import Key" and browse to your id_rsa file. Enter the passphrase. Click "Save Private Key" and enter a file name. I use id_rsa, as puttygen will append ".ppk" to the end.
9. Open Putty. Create a saved profile. Make the following changes.
a. Under Connection/Data enter "root" into the field "Auto-login username"
b. Under Connection/SSH/Auth browse to your new .ppk file
c. Go back to Session and click "Save" again or it wont be saved.
10. Grab a copy of pageant. Put it in c:\windows\system32
11 Create a batch file in your startup folder, call it Pagaent.bat. type one line;
start pageant.exe "C:\MyKeys\id_rsa.ppk"
Substitute as appropriate.
12. Double click the batch file to simulate what would normally happen at login - a dos window should flash up, then go away leaving a prompt for your passphrase (which you entered in step 5). Once you have done this you should have the pageant icon (monitor with a black hat) in your systray. Right click to see the key(s) you have loaded.
13 Start Putty, double click your saved profile. You should get straight to a root prompt.
This is all from memory, so appologies
for any typos or errors.
Can someone tell me how to get this into the docs for SME?
Is it good enough?
MrKiwi.