mac的Finder連線遠端伺服器(阿里雲伺服器)
阿新 • • 發佈:2019-01-02
最近租了一個阿里雲伺服器,想用mac的Finder遠端連線下,但是折騰了好久。。。弄了一個下午,終於成功,簡單記錄下。
1、簡單瞭解下mac的finder訪問遠端的伺服器
- finder支援的協議有
- 一般選擇smb協議
2、伺服器安裝SAMBA
- 沒有安裝samba的伺服器,不能被訪問,剛申請的伺服器是沒有安裝samba
- 檢視安裝情況:rpm -qa|grep samba
- 如果沒有安裝samba,什麼都不顯示
- 如果已經安裝了samba,會顯示安裝的包資訊
- 安裝samba:sudo install samba
- 安裝成功後,修改配置檔案/etc/samba/smb.conf
[global] workgroup = MYGROUP server string = Samba Server Version %v log file = /var/log/samba/log.%m max log size = 50 security = user passdb backend = tdbsam load printers = yes cups options = raw [homes] comment = Home Directories browseable = no writable = yes ; valid users = %S ; valid users = MYDOMAIN\%S [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [share] path = /home ;分享的地址 available = yes browseable = yes public = yes writeable = yes valid user = minbo ;自己的使用者名稱 create mask = 0700 directory mask = 0700 force oser = nobody
- 這裡有個坑,如果只有root使用者,沒有其他的使用者,是不能連線成功的,需要建立一個新的使用者(在這裡折騰了好長時間)
- 啟動服務
service smb restart
service nmb restart
- 設定開機啟動
- chkconfig smb on
- chkconfig nmb on
- chkconfig smb on