I'm very new to Linux, BTW. The ultimate goal for me is to run applications and their GUIs on a (Mac) computer from another computer. The first step is to just use SSH to access and control the computer using another computer and the terminal. This was working fine.The next step was to install XQuartz on the server and terminal to be able to see and use GUI on the other computer. Regular SSH control worked but not the GUI. Apparently, the DISPLAY variable was not set correctly and this was probably due to the fact that X11Forwarding was set to no in the sshd.config file. I changed it to yes; regular SSH still worked but the DISPLAY was still wrong and GUI did not appear. So, I read that I had to restart the SSH service and I found a way to do it:sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plistThis screwed something up, because now I can't even do regualr ssh control. I tried to both unload and load, this gives different error messages in the terminal:When I run (on the other computer):sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plistI instantly get:ssh_exchange_identification: Connection closed by remote hostThen I tried to undo the damage:sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plistThen I, after some time (about 3 seconds), get:ssh: connect to host macpro-c10c8b.imt.liu.se port 22: Connection refusedWhat have I done, and how can I fix it?
My ssh server stopped working after I did something
ssh;x11;gui