My ssh function stopped working after I did “something” -


the ultimate goal me run applications , guis on (mac) computer computer. first step use ssh access , controll computer using computers , terminal. working fine.

the next step install xquartz on both server , terminal able see , use gui on other computer. regular ssh control worked not gui-thing. apparently display variable not set correctly , due xlforwarding = no set no in sshd.config file. changed yes, regular ssh still worked display still wrong , gui did not appear. so, read had restart ssh service , found way it:

sudo launchctl unload -w /system/library/launchdaemons/ssh.plist 

this screwed up, because can't regular ssh control. tried both unload , load, gives different error messages in terminal:

when run (on other computer):

 sudo launchctl load -w /system/library/launchdaemons/ssh.plist 

i instantly get:

ssh_exchange_identification: connection closed remote host

then tried undo damage:

sudo launchctl unload -w /system/library/launchdaemons/ssh.plist 

then i, after time (about 3 seconds), get:

ssh: connect host macpro-****.imt.liu.se port 22: connection refused

what have done, , how can fix it? :'(

there seems information missing here, if interested in restarting sshd process, using following command more appropriate unloading service:

sudo launchctl stop com.openssh.sshd 

it should restart automatically.

your usage of launchctl unload stop sshd process starting, not looking for.


to begin troubleshooting, verify sshd listening on machine, target machine:

macbook-pro: user$ netstat -a | grep ssh tcp6       0      0  *.ssh                  *.*                    listen      tcp4       0      0  *.ssh                  *.*                    listen 

note can make changes in gui, if more comfortable that:

enter image description here


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -