您的位置:首页 > 运维架构 > Linux

centos6.5 ssh 连接及ftp服务建立~~~

2014-10-21 15:28 295 查看
首先,下载oppenssh-server

sudo yum install openssh-server

查看进程

 ps -e |grep ssh

//重启服务

/etc/init.d/sshd restart

//开机启动


chkconfig sshd on


在防火墙里面加入规则:

/etc/sysconfig/iptables 

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

//重启IPTABLES 服务

service iptables restart

这样应该可以用telnet访问了。

ftp:

//下载ftp服务

yum -y install vsftpd

//设置开机启动vsftpd ftp服务

chkconfig vsftpd on

//重新启动vsftpd服务

service vsftpd restart

//管理vsftpd相关命令:

停止vsftpd:  service vsftpd stop

重启vsftpd:  service vsftpd restart

//配置vsftpd服务器

vi /etc/vsftpd/vsftpd.conf

#chroot_list_enable=YES

# (default follows)

#chroot_list_file=/etc/vsftpd/chroot_list

..................................

//在防火墙里面加入规则:

vim/etc/sysconfig/iptables 

-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

//重启IPtable的服务

service iptables restart

//重新启动vsftpd服务

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