sudo apt-get install openssh-server openssh-client
启动SSH-Server
sudo /etc/init.d/ssh start
然后点击位置-》连接到服务器-》SSH-》输入ip-》密码
命令登录:
ssh –l zhoulb 192.168.6.179
把本机的文件拷贝到服务器的/home/zhoulb目录下:
Scp /work/NXP/*** @192.168.6.179:/home/zhoulb
把远程文件传输给本地系统的一般语法是:
Ubuntu10.10安装samba服务器及配置
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