[Slackware] SSH Configuration
Secure Shell, or commonly abbreviated as SSH, is a network protocol that enables secure connections between devices. SSH was created to replace other remote shell communications that were considered less secure in terms of authentication.
This time I will write about how to configure an SSH Server on the Slackware 14.0 distro. Configuring it is quite easy, you just need to enable the SSH service, and then SSH can be used immediately. But it is even better if it is configured further for security.
The user used for login is the root user, so it is dangerous if the root password can be known by others. For that reason, we must restrict access by setting the “PermitRootLogin no” option in the sshd_config file and then create a new user account if you don’t already have a user account other than root on your computer. To do this, type “useradd <nama>namauser” then set the password using “passwd <nama>namauser”.
Starting the service, to start the service, open your terminal and type “/etc/rc.d/rc.sshd start”
SSH will immediately start on your computer’s IP (check with ifconfig) and on Port 22.
The next step is to configure the port so it’s not easily tracked by scanners. To change the default port, go to /etc/ssh and edit sshd_config. Open it with “nano /etc/ssh/sshd_config”and remove the hash sign from the front of the Port entry, then replace the port value with your favorite number.
Once done, if you want to restrict users who log in using only certain accounts, please open the sshd_config file again and add the setting “AllowUsers namauser<nama>”.
Just as an addition, to make it a bit cooler, you can display a banner or a short message when the client logs in to your server. The way is to create a file in the /etc/ssh folder with the name banner (for example), and type your message. After that, go into the sshd_config configuration file again and remove the hash sign on the word banner, then replace it with “banner /etc/ssh/namafile”.
Okay, everything is configured, please try it by connecting with an SSH Client. I tried it with an SSH Client on my Android phone and it ran smoothly.
Hope this helps. Good Luck !
Wireshark Cookie Dump:
<input id=”cookieInjectorCookie” type=”text” >
<button onclick=”cookieInjector.writeCookie();”>OK<button onclick=”cookieInjector.hide();”>Cancel