The easiest way to share and transfer files between Mac OS and windows

Source: Internet
Author: User
Tags ftp client filezilla sftp access ssh secure shell ssh server

I have been using Mac OS for a while, but I have never been able to transfer files conveniently with my Windows laptop, all through QQ. I can't stand it today. I decided to find a simple solution.


Method 1: Using SSH (capture from http://www.maciverse.com/how-to-turn-on-your-macs-sftp.html)

To enable SFTP access to your Mac:

  1. Open System Preferences and Select Sharing

  2. Next, make sure that remote login is enabled. you can allow any of the user accounts on your system to connect through remote login or you can specific users that you 'd like to connect. if you 'd like to create an account for a specific individual that
    Doesn't have access on your account then see additional details in the next section of this article.

  3. With remote login enabled, your SFTP server on your Mac is enabled and you shocould be able to connect to your Mac with SFTP. Open any SFTP supported FTP client (We usecyberduck)
    Enter your IP address, your account username to login to your Mac and your password. be sure the port is set to 22 and click Connect. if everything is working correctly you shocould be able to access your Mac file system and folder structure.

Note:

(1). After the above configuration, you can use the command line to connect

(2) by default, OpenSSH does not support password verification. You need to edit the/etc/sshd_config file and set passwordauthentication to on


Method 2: Share through windows (cut from http://china.ygw.blog.163.com/blog/static/68719746201162785323168)

1) Ensure that MACOs and Windows belong to the same working group.

I will not talk about setting the Working Group for Windows (everyone knows about it). Here we will talk about the steps for setting the Working Group for MACOs:

A) Click "Finder" ---> "service" ---> "service preference settings" to display the following interface:

If the display is not as shown in, click the "show all" button on the actual interface to display the above interface.

B) Click the "network" icon in the middle, click the "advanced" button in the window that comes out, and then click the "wins" tab in the window that comes out, as shown in:

C) you only need to confirm that the name of the "workgroup" is consistent with that of the Windows system workgroup.

2) set the IP address range of MACOs and windows to the same network segment.

In Windows, the IP address settings of the MACOs system are not mentioned much.

In the (network form), click the "TCP/IP" tab, and then select "Manual" in the "Configure IPv4" option, enter the IP address and mask of the same network segment as windows in sequence.

3) set Windows Shared Folder

This is not much to say.

4) MACOs accessing Windows Shared Folders

Click "Finder" ---> "go" ---> "connect to server" menu to display the following form:

For example, the server address format is "SMB: // XXX. XXX", where XXX. XXX is the address of the Windows system. After entering the server address, you can click the "+" button on the Right To save the server address (for direct access next time) and click the "Connect" button below to connect to the Windows Shared Folder, enter the user name and password of the shared folder in the authentication box to display the Windows Shared Folder content.


During the experiment, we found a very strange problem: After enabling SFTP of Mac OS, files cannot be transmitted through the file transfer tool of SSH Secure Shell (this is because files in the directory cannot be listed after connection ), however, you can use the command line tool of SSH Secure Shell to access the SSH server.

After a long time of hard research, I found the clients they recommended on the OpenSSH website, including filezilla and winscp, but I did not find SSH Secure Shell. Using filezilla and winscp to connect to SFTP is really good, so it is determined that it is not a problem with SFTP configuration, the problem must be on SSH Secure Shell.

Think about SSH Secure Shell, which is also a legacy tool, and I used to connect SFTP in the company's development environment. Why does it not support open ssh sftp in Mac OS?

Naturally, I downloaded the latest version of SSH Secure Shell, whose version is 3.2.9. After the test, I found that SFTP can be normally connected to Mac OS. I installed version 3.1.0 before. I 'd like to know which issues have been fixed between the two versions. This bug is a bit big!




Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.