1, install Xshell (online download)
2. Open the software, create a new session, select "Connect", the protocol Select "SSH", host input the IP address of the remote Mac that needs to be accessed, click OK to return to the "session" page after the input is completed.
3, "session" page click the connection button, pop up the "SSH User name" Popup window, enter the MAC user name, before clicking the "OK" button, it is best to tick "Remember user name"
4, "session" page click OK, jump out of the "SSH user authentication" pop-up window, select the "Public Key" radio button, "User Key" box click the Browse button, select "User Key", jump out of "user key" pop-up, you can click "Generate" a key, click "OK Button", Return to "SSH user authentication"; Continue to enter the Mac login password in the "Password" box, click "OK" and then return to the Xshell page, you can see the connection to the remote host successfully
5, remote Mac installation sz and CZ command, you can see the installation failed, because brew is not in the root group, so only need to execute
Enter the installation command again to install successfully
macbook$ sudo brew install Lrzsz Password:Error:Cowardly refusing to ' sudo brew-install ' You can use the brew with sudo, b UT only if the brew executable are owned by root. However, this was both not recommended and completely unsupported so doing so atyour own risk.superfangfang:~ macbook$ sudo-s bash-3.2# cd/usr/local/bash-3.2# chown root/usr/local/bin/brew bash-3.2# Brew install lrzsz==> downloading https://h omebrew.bintray.com/bottles/lrzsz-0.12.20.yosemite.bott####################################################### ################# 100.0%==> pouring lrzsz-0.12.20.yosemite.bottle.tar.gz??
PS: Well, later in the leadership know, found = = actually not so troublesome, just need to open the Finder on the Mac, on this page to execute the command+k command, open the following pop-up window, enter the IP address of Windows, click the connection will jump out of another pop-up window, enter a domain account and password, Click Connect to open the shared user for remote Windows
Windows Xshell Connect mac