Skip to playerSkip to main content
  • 2 days ago
Transcript
00:00what's up there i wanted to set up an ssh server on on a debian machine that i have here
00:07and i wanted to share that with you so the first command should be
00:14apt update to update the repos indexes in the
00:21system enter remember we are connecting through a vnc connection to this virtual machine
00:30and then in case you have any packages that can be updated simply run apt upgrade
00:40but i have none here so i can simply go to the next command which will install the package
00:47that has the ssh server in it and the command should be apt install open ssh server
01:00and then once the command is typed correctly we are ready to press enter and then here we press y
01:12and enter you are you're able to add dash y to the command to skip the last confirmation
01:23that remember to run these commands as root either by going to the root user
01:31by running the command sudo su or su or by typing sudo in front of every every command
01:42so the next command should be systemctl start ssh d
01:54and then we are able to enable it at every startup simply by running
02:02i believe that the service has been started and enabled
02:06here in case it's not started you are able to run the command systemctl start ssh d to start it and to
02:16enable it you run systemctl enable ssh d to check that all these con configurations are successful
02:26you can run systemctl status ssh d that should tell us whether our service has been started and enabled
02:44successfully or not and we can see here that it is active and loaded and everything and it's enabled as
02:53well in case it's not you are able to enable and start it by running the two commands systemctl start
03:02and systemctl enable ssh d the service and you can replace the two commands with one which should be
03:09systemctl enable dash dash now like i'm gonna show you now
03:17like this that should start and enable it at the same time for you you press enter and you are good to
03:29go for me it's enabled and started automatically after the installation of ssd ssh is done
03:40we clear out the screen and then we should check the ip address on the server by running the command ipa
03:56i have only two interfaces one is the loopback and the other one is the interface that is connected to
04:02the network and i have an ip address which i can use here to connect to my ssh server running debian or uh
04:13to my debian which runs the ssh server i am connected through a client here so i'm able to connect through
04:23ssh i can open the terminal you should know your username and its password ssh in my case the username
04:38is user dot one zero dot seventeen
04:46yes here you get we get this confirmation in the first
04:49time of connecting to the server enter and the password and we are connected to our
04:59ssh or to our debian machine through ssh we can check the system version os release and we can see
05:09that it is running debian that was how you set up an ssh server on debian and probably the other
05:16distributions based on it please don't forget to subscribe like share and comment and cheers
Be the first to comment
Add your comment

Recommended