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
在防火墙里面加入规则:
/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
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
相关文章推荐
- CentOS下SSH远程连接服务慢解决方案
- 【原创】windows通过ssh服务远程登录centos6.5
- CentOS6.5 ssh远程连接缓慢解决方法
- SSH无法连接虚拟机CentOS6.5主机
- centos开启ssh远程连接服务
- CentOS6.5 搭建FTP服务
- 利用SSH工具连接虚拟机上的CentOS 6.5
- centos的SSH远程连接服务慢的解决方法
- Centos6.5上搭建FTP服务
- docker 搭建centos6.5 ssh 服务出现的问题
- centos 6.5 设置FTP服务器 与客户机连接FTP服务器
- Centos 6.5 安装FTP服务
- centos6.5安装vsftp服务并配置虚拟账户ftp
- hosts.allow限制ip连接服务器各个服务(ftp、ssh等)
- centos配置ssh和ftp服务
- CentOS 安装vsftpd并建立ftp服务
- SSH Secure Shell Client 连接虚拟机中的centos 6.5【Win】
- 阿里云 CentOS6.5 ssh连接慢的解决方案
- centos6.5上安装配置ftp服务
- 如何为虚拟机中的Ubuntu17安装SSH服务以及与XShell建立连接