sftp server环境搭建
来源:互联网 发布:淘宝买家留言 编辑:程序博客网 时间:2024/05/16 10:56
1.服务器端我们使用openssh,它自带了cygwin环境以及scp/sftp的服务器(sftp是ssh的一个“子服务”,在ssh通道中使用某个命令在需要时激活)。
http://sourceforge.net/ 是一个和好的开源网站,可搜索openssh for linux最新版本下载.
安装了 openssh就安装了sftp
2.<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;mso-font-charset:0;mso-generic-font-family:roman;mso-font-pitch:variable;mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;mso-font-charset:0;mso-generic-font-family:swiss;mso-font-pitch:variable;mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-unhide:no;mso-style-qformat:yes;mso-style-parent:"";margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;mso-pagination:widow-orphan;font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;}p{mso-style-noshow:yes;mso-style-priority:99;mso-margin-top-alt:auto;margin-right:0cm;mso-margin-bottom-alt:auto;margin-left:0cm;mso-pagination:widow-orphan;font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman";}.MsoChpDefault{mso-style-type:export-only;mso-default-props:yes;font-size:11.0pt;mso-ansi-font-size:11.0pt;mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;mso-font-kerning:0pt;}.MsoPapDefault{mso-style-type:export-only;margin-bottom:10.0pt;line-height:115%;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
tar -xzvf openssh-5.3p1.tar.gz
cd openssh-5.3p1
152 rpm -qa |grep ssh
153 rpm -eopenssh --nodeps
154 rpm -eopenssh-server --nodeps
155 rpm -eopenssh-clients --nodeps
156 rpm -eopenssh-askpass --nodeps
157 ./configure --prefix=/usr --sysconfdir=/etc/ssh--with-pam --with-zlib --with-ssl-dir=/etc/pki/tls --with-md5-passwords--mandir=/usr/share/man
159 make
make install
ssh -v
172 ps -ef | grepssh
173 kill -9 18830
/usr/sbin/sshd
mkdir /chroot
chown root.root /chroot
groupadd sftp
useradd -G sftp -s /bin/false -d /chroot/ccsd oouser
passwd oouser
cat /etc/ssh/sshd_config
<!-- /* Font Definitions */ @font-face{font-family:宋体;panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-alt:SimSun;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;}@font-face{font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;mso-font-charset:0;mso-generic-font-family:roman;mso-font-pitch:variable;mso-font-signature:-1610611985 1107304683 0 0 159 0;}@font-face{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;mso-font-charset:0;mso-generic-font-family:swiss;mso-font-pitch:variable;mso-font-signature:-1610611985 1073750139 0 0 159 0;}@font-face{font-family:"/@宋体";panose-1:2 1 6 0 3 1 1 1 1 1;mso-font-charset:134;mso-generic-font-family:auto;mso-font-pitch:variable;mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal{mso-style-unhide:no;mso-style-qformat:yes;mso-style-parent:"";margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;mso-pagination:widow-orphan;font-size:11.0pt;font-family:"Calibri","sans-serif";mso-ascii-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:宋体;mso-fareast-theme-font:minor-fareast;mso-hansi-font-family:Calibri;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;}p{mso-style-noshow:yes;mso-style-priority:99;mso-margin-top-alt:auto;margin-right:0cm;mso-margin-bottom-alt:auto;margin-left:0cm;mso-pagination:widow-orphan;font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-font-family:"Times New Roman";}.MsoChpDefault{mso-style-type:export-only;mso-default-props:yes;font-size:11.0pt;mso-ansi-font-size:11.0pt;mso-bidi-font-family:"Times New Roman";mso-bidi-theme-font:minor-bidi;mso-font-kerning:0pt;}.MsoPapDefault{mso-style-type:export-only;margin-bottom:10.0pt;line-height:115%;} /* Page Definitions */ @page{mso-page-border-surround-header:no;mso-page-border-surround-footer:no;}@page Section1{size:612.0pt 792.0pt;margin:72.0pt 90.0pt 72.0pt 90.0pt;mso-header-margin:36.0pt;mso-footer-margin:36.0pt;mso-paper-source:0;}div.Section1{page:Section1;}-->
# override default of no subsystems
Subsystem sftp internal-sftp
#Subsystem sftp /usr/libexec/sftp-server
# Example of overriding settings on a per-userbasis
#Match User anoncvs
#
X11Forwarding no
#
AllowTcpForwarding no
#
ForceCommand cvs server
Match Group sftp
ChrootDirectory /chroot
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
- sftp server环境搭建
- 如何在Windows上搭建SFTP Server
- 在Windows Server上搭建SFTP
- SFTP搭建
- SFTP 搭建
- SFTP环境搭建及客户代码调用公共方法封装
- 在Centos 6.6环境使用系统自带的internal-sftp搭建SFTP服务器。
- 在Centos 6.6环境使用系统自带的internal-sftp搭建SFTP服务器。
- 在Centos 6.6环境使用系统自带的internal-sftp搭建SFTP服务器
- stfp server 环境搭建
- CentOs Server环境搭建
- CentOs Server环境搭建
- Photon Server环境搭建
- dropear 配置 sftp-server
- dropbear支持sftp-server
- Sftp服务器搭建手册
- linux搭建sftp服务器
- LINUX 搭建sftp 服务器
- .NET 中的进程/线程同步技术
- 《精通CSS高级WEB标准解决方案》第一章:基础知识
- 让VC++直接生成汇编代码
- linux协议栈之链路层上的数据传输之网卡驱动
- FD_SET等重定义问题58个编译错误
- sftp server环境搭建
- 生成随机密码
- VC++ 6.0实用技巧汇总
- Windows平台的ruby IDE 点评
- Linux “线程”
- 关于c#.net页面传值方法的分析
- MSDN系列(11)--给SoftICE写插件
- 很幽默的讲解六种Socket I/O模型
- 生成精美的验证码(带变形的哦)