Rumor 2605 Posted November 16, 2014 Share Posted November 16, 2014 Thankfully, we have the tutorial for FreeBSD by Shogun here: http://metin2dev.org/board/topic/183-basic-ssh-security/ Today's example should work on Unbuntu and some other OS as well. This example is based off Debian 7 Wheezy. It's almost an identical process. 1. Add the new user account and restrict sudo usage. Be root user before continuing! # adduser roman This will prompt the user for input, you can leave it all default. Type in a password when prompted. # nano /etc/pam.d/su Go down and uncomment the following line: #auth required pam_wheel.so CTRL+X, Y, Enter. 2. Permit the new user account to use the wheel group with root privileges: # groupadd wheel # usermod -G wheel roman 3. Create your private key and configure WinSCP to use it. # cd /home # chown -R roman:wheel roman/ # su roman # ssh-keygen Accept all defaults with enter. # cd roman/.ssh # mv id_rsa.pub authorized_keys # cat id_rsa Copy the entire output (including the comments) by highlighting it in PuTTy then paste it into a text file and save it. Download this program: https://www.puttygen.com/ Run puttygen and click "Load" then select "All Files" from the file dialog and select the text file you saved the key to. Click "Save Private Key" and select "Yes" on the popup regarding password. Now open WinSCP and add a new connection with the same IP address but with the new user name (in our example, "roman"). Click "Advanced" then click "Authentication". Click the three dots ("...") and select the ppk file you saved using puttygen. Click "OK" then save your connection. 4. Disable root login and password authentication. # su root Enter the root password when prompted. # nano /etc/ssh/sshd_config Go down to the line called "PermitRootLogin" and change it's value to "no". Go down to the line called "PasswordAuthentication" and change it's value to "no". Uncomment this line. CTRL+X, Y, Enter. Now restart the ssh service and you're done. # service ssh restart If you're unsure about what you're doing, I recommend leaving an extra root terminal open in PuTTy so if something goes wrong you can reverse your changes. 1 1 1 Link to comment Share on other sites More sharing options...
Premium Galet 510 Posted November 16, 2014 Premium Share Posted November 16, 2014 Thanks ! A debien serven can be usefull for metin2, or not ? Link to comment Share on other sites More sharing options...
Rumor 2605 Posted November 16, 2014 Author Share Posted November 16, 2014 If you can make it run on linux, sure. Otherwise you may choose to run website/patcher or other things on it that are needed for your server such as a seedbox for torrents or another http download mirror. Link to comment Share on other sites More sharing options...
Management AZICKO 7340 Posted March 16, 2020 Management Share Posted March 16, 2020 Lien putty à modifier Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
Recommended Posts