

If you have decided to change the default port number, you must configure your firewall to allow traffic via the specified port. For the changes to take effect, restart the SSH service with the following command: sudo systemctl restart rvice Configure Firewall In the configuration file, find the line that reads PermitRootLogin_yesand change it to PermitRootLogin_no.Ģ. That way, the root user cannot be invoked remotely, and security will be significantly improved.ġ.

Disable RootĪnother critical security precaution is to disable remote root access. Everyone is aware of the default port number so changing it is a recommended security precaution. I have tried performing the ssh using the "-X" and "-Y" flags (no quotes), but this did not change anything.Īny thoughts on making X11 forwarding work so that I can use GUI applications remotely over ssh?ĮDIT: I FOUND A SOLUTION - use "export DISPLAY=localhost:0.0" (no quotes) and X11 seems to work over ssh (as well as locally).Note: Changing the default port number is an SSH security best practice. Intel processor and Nvidia gpu (in case this matters for whatever reason). All available updates from windows update are installed. I'm using windows 10 (obviously), and in particular the 64-bit version. I DO have full admin access on my local machine. I don't have full admin access to the Linux machines I am ssh'ing to, but I have successfully used GUI applications remotely over ssh with these machines in the past (under a different scenario - here I was using a "real" Linux machine to initiate the ssh). gedit) to display on the screen, but this doesn't work when using ssh. This successfully gets local GUI applications (e.g. I also have to use the command "export DISPLAY=:0" (no quotes) to get this to work. X11 doesn't seem to be built into the windows version of Linux, but I have tried to get around that by running an Xming server in the background. I want this programs GUI to display on my local machine's monitor.

Just to be clear with what I mean by "X11 forwarding" - I am running a program (with a GUI) on a remote Linux machine that I am ssh'ing to. Mostly everything seems to be working just like a regular Linux system, but I cant seem to get X11 forwarding (when linked to another Linux machine over ssh) to work. I recently started using the built-in Linux client that's available for Windows 10 (more info and installation instructions here in case anyone is interested).
