当前位置:网站首页>ssh 默认端口不是22时的一些问题
ssh 默认端口不是22时的一些问题
2022-06-30 21:21:00 【每天都想躺平的大喵】
最近在工作的时候,遇到一台ssh默认端口为23245的服务器。
查看ssh默认端口
vim /etc/ssh/ssh_config
可以通过以上命令查看config文件里面的Port设置来确定ssh默认端口。
ssh 和 scp
当ssh默认端口不是22的时候,我们在用scp和ssh时需要指明port:
默认端口22的服务器连接默认端口23245的服务器时:
ssh -p 23245 [email protected]
默认端口23245的服务器连接默认端口22的服务器时:
ssh -p 22 [email protected]
从默认端口22的服务器复制内容到默认端口23245的服务器时:
scp -P 23245 file [email protected]:dir
从默认端口23245的服务器复制内容到默认端口22的服务器时:
scp -P 22 file [email protected]:dir
边栏推荐
猜你喜欢
Understand what MySQL index push down (ICP) is in one article

《ClickHouse原理解析与应用实践》读书笔记(3)

文本识别-SVTR论文解读

asp. Net core JWT delivery

ICLR'22 Spotlight | 怎样度量神经网络权重中的信息量?

漫谈Clickhouse Join

Adobe-Photoshop(PS)-脚本开发-去除文件臃肿脚本

3Ds Max 精模obj模型导入ArcGIS Pro (二)要点补充

MySQL advanced 3

Reading notes of Clickhouse principle analysis and Application Practice (1)
随机推荐
Apply for vector bus protocol color picture wallpaper hanging picture, very good!
Clickhouse Native Monitoring item, System table Description
coredns 修改upstream
ClickHouse distributed表引擎
. NETCORE redis geo type
How to run jenkins build, in multiple servers with ssh-key
Learning summary
MySQL advanced 3
报错:Internal error XFS_WANT_CORRUPTED_GOTO at line 1635 of file fs/xfs/libxfs/xfs_alloc.c.
Metauniverse may become a new direction of Internet development
《ClickHouse原理解析与应用实践》读书笔记(3)
The 16th Heilongjiang Provincial Collegiate Programming Contest
关于,奇安信检测代码漏洞,XSS系列解决
利用日志服务器输出各种apache的日志的TOPN
针对美国国家安全局“酸狐狸”漏洞攻击武器平台的分析与应对方案建议
科研中遇到迷茫困惑如何向前一步?如何在科研中发挥女性优势?
Two skylines
stacking集成模型预测回归问题
ceshi deces
Iclr'22 spotlight | how to measure the amount of information in neural network weights?