您的位置:首页 > 其它

Ubuntu10.10 配置ssh服务器及samba服务器

2012-06-28 14:54 363 查看
sudoapt-getinstallopenssh-serveropenssh-client



启动SSH-Server



sudo/etc/init.d/sshstart

然后点击位置-》连接到服务器-》SSH-》输入ip-》密码



命令登录:

ssh–lzhoulb192.168.6.179

把本机的文件拷贝到服务器的/home/zhoulb目录下:

Scp/work/NXP/***@192.168.6.179:/home/zhoulb

把远程文件传输给本地系统的一般语法是:



Ubuntu10.10安装samba服务器及配置

sudoapt-getinstallsamba
gedit/etc/samba/sam.conf
#smb.confisthemainSambaconfigurationfile.Youfindafullcommented

#versionat/usr/share/doc/packages/samba/examples/smb.conf.SUSEifthe

#samba-docpackageisinstalled.

#Date:2007-09-22

[global]

workgroup=WORKGROUP

printing=cups

printcapname=cups

printcapcachetime=750

cupsoptions=raw

include=/etc/samba/dhcp.conf

logonpath=\\%L\profiles\.msprofile

logonhome=\\%L\%U\.9xprofile

logondrive=P:

#usershareallowguests=Yes

domainlogons=Yes

domainmaster=Yes

localmaster=Yes

oslevel=65

preferredmaster=Yes

nullpasswords=yes

security=share

guestok=yes

usersharemaxshares=100

security=user

encryptpasswords=yes

smbpasswordfile=/etc/samba/smbpasswd

#root=wangcong


#[zhoulb]

#comment=zhoulb

#inheritacls=Yes

#path=/home/zhoulb

#readonly=No

[homes]

comment=HomeDirectories

browseable=no

writable=yes

validusers=%S


重启

servicesambastart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: