共 24 篇文章 |
|
开启某个端口号(如8000端口号,命令方式) iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 8000 -j ACCEPT 保存开启的端口号 service iptables save 重新启动防火墙 service iptables restart.通过修改配置文件开启端口号(如8000端口号)vi /etc/sysconfig/iptables-A INPUT -p tcp -m state --state NEW -m tcp --dport 8000 -j... 阅1673 转1 评0 公众公开 22-12-30 15:19 |
阅479 转0 评0 公众公开 21-12-16 22:24 |
阅11 转0 评0 公众公开 21-12-16 17:07 |
-1:强制scp命令使用协议ssh1-2:强制scp命令使用协议ssh2-4:强制scp命令只使用IPv4寻址-6:强制scp命令只使用IPv6寻址-B:使用批处理模式(传输过程中不询问传输口令或短语)-C:允许压缩。scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file 或者 scp local_file remote_i... 阅62 转0 评0 公众公开 21-12-13 23:35 |
linux防火墙查看状态firewall、iptable.service iptables restart二、firewall防火墙1、查看firewall服务状态。firewall-cmd --state3、开启、重启、关闭、firewalld.service服务。# 查询端口是否开放firewall-cmd --query-port=8080/tcp# 开放80端口firewall-cmd --permanent --add-port=80/tcp# 移除端口firewall-cmd --permanent --remove-p... 阅12 转0 评0 公众公开 21-11-23 17:09 |
阅15 转0 评0 公众公开 21-03-30 12:45 |
阅71 转0 评0 公众公开 21-03-23 17:40 |
使用pscp实现Windows 和 Linux服务器间远程传递文件一、PSCP简介。PSCP (PuTTY Secure Copy client)是PuTTY 提供的文件传输工具,通过SSH连接,在两台机器之间安全的传输文件,可以用于任何SSH(包括SSH v1、SSH v2)服务器。d:\putty>pscp -r root@IP:/root/dir d:\data注意:1. IP指Linux服务器的IP地址;d:\putty>pscp root@IP:/usr/f... 阅316 转0 评0 公众公开 21-03-22 17:44 |
SCP 从Linux下载文件到Windows本地下载单个文件。scp linux_username@linux_ip:[linux上目标文件的路径] [指定下载到windows本地的路径]如:把linux上redis的配置文件6379.conf下载到windows的桌面:scp -r linux_username@linux_ip:[linux上目标文件的路径] [指定下载到windows本地的路径]如:把linux上redis的所有文件下载到windows的桌面: 阅1228 转0 评0 公众公开 21-03-22 16:36 |
scp从linux服务器拷贝文件到windowsscp从linux服务器拷贝文件到windows 杨小扬 2019-09-24 15:00:10 9755 收藏 1 分类专栏: 脚本语言 文章标签: 远程拷贝文件 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。用于密钥登陆时难以拷贝时,命令格式:scp -r 文件路径 administr... 阅118 转0 评0 公众公开 21-03-22 16:27 |