Ubuntu10.10 配置ssh服务器及samba服务器
生活随笔
收集整理的這篇文章主要介紹了
Ubuntu10.10 配置ssh服务器及samba服务器
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
sudo apt-get install openssh-server openssh-client
?
啟動(dòng)SSH-Server
?
sudo /etc/init.d/ssh start
然后點(diǎn)擊位置-》連接到服務(wù)器-》SSH-》輸入ip-》密碼
?
命令登錄:
ssh –l zhoulb 192.168.6.179
把本機(jī)的文件拷貝到服務(wù)器的/home/zhoulb目錄下:
Scp /work/NXP/*** @192.168.6.179:/home/zhoulb
把遠(yuǎn)程文件傳輸給本地系統(tǒng)的一般語法是:
?
Ubuntu10.10安裝samba服務(wù)器及配置
sudo apt-get install samba
gedit? /etc/samba/sam.conf
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. # Date: 2007-09-22 [global] ?????????????? workgroup = WORKGROUP ?????????????? printing = cups ?????????????? printcap name = cups ?????????????? printcap cache time = 750 ?????????????? cups options = raw ?????????????? include = /etc/samba/dhcp.conf ?????????????? logon path = \\%L\profiles\.msprofile ?????????????? logon home = \\%L\%U\.9xprofile ?????????????? logon drive = P: #???????????? usershare allow guests = Yes ?????????????? domain logons = Yes ?????????????? domain master = Yes ?????????????? local master = Yes ?????????????? os level = 65 ?????????????? preferred master = Yes ?????????????? null passwords = yes ?????????????? security = share ?????????????? guest ok = yes ?????????????? usershare max shares = 100 ?????????????? security = user ?????????????? encrypt passwords = yes ?????????????? smb password file = /etc/samba/smbpasswd #???????????? root = wangcong ? #[zhoulb] #???????????? comment = zhoulb #???????????? inherit acls = Yes #???????????? path = /home/zhoulb #???????????? read only = No [homes] ??????? comment = Home Directories ??????? browseable = no ??????? writable = yes ??????? valid users = %S ? 重啟 service samba start?
總結(jié)
以上是生活随笔為你收集整理的Ubuntu10.10 配置ssh服务器及samba服务器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: akae-arm9异常
- 下一篇: 编译Android源码前的一个步骤