当前位置:网站首页>Some problems when SSH default port is not 22
Some problems when SSH default port is not 22
2022-06-30 21:37:00 【A big cat who wants to lie flat every day】
Recently at work , Meet a ssh The default port is 23245 Server for .
see ssh Default port
vim /etc/ssh/ssh_config
You can view through the above command config In the document Port Set to determine ssh Default port .
ssh and scp
When ssh Default port is not 22 When , We were using the scp and ssh It is necessary to specify port:
Default port 22 The default port for the server connection 23245 On the server :
ssh -p 23245 [email protected]
Default port 23245 The default port for the server connection 22 On the server :
ssh -p 22 [email protected]
From the default port 22 The server copies the contents to the default port 23245 On the server :
scp -P 23245 file [email protected]:dir
From the default port 23245 The server copies the contents to the default port 22 On the server :
scp -P 22 file [email protected]:dir
边栏推荐
- [untitled]
- Multi table operation - foreign key constraint
- Is it safe to open an account for stock trading on mobile phones?
- .netcore redis GEO类型
- Why have the intelligent investment advisory products collectively taken off the shelves of banks become "chicken ribs"?
- ArcGIS construction and release of simple road network data service and rest call test
- AKK菌——下一代有益菌
- 兴奋神经递质——谷氨酸与大脑健康
- Apply for vector bus protocol color picture wallpaper hanging picture, very good!
- Who are you and I
猜你喜欢

clickhouse原生监控项,系统表描述
Understand what MySQL index push down (ICP) is in one article

Five years after graduation, I wondered if I would still be so anxious if I hadn't taken the test

Ten security measures against unauthorized access attacks

Reading notes of Clickhouse principle analysis and Application Practice (3)
测试媒资缓存问题

漫谈Clickhouse Join

Four Misunderstandings of Internet Marketing

全面认识痛风:症状、风险因素、发病机理及管理

Arcmap|assign values to different categories of IDS with the field calculator
随机推荐
PyTorch量化实践(2)
全面认识痛风:症状、风险因素、发病机理及管理
【无标题】第一次参加csdn活动
Fletter nested hell? No, constraintlayout to save!
ssh 默认端口不是22时的一些问题
模板方法模式介绍与示例
本地浏览器打开远程服务器上的Jupyter Notebook/Lab以及常见问题&设置
1-17 express Middleware
多态在代码中的体现
1-14 express managed static resources
《ClickHouse原理解析与应用实践》读书笔记(1)
Sqlserver gets the data of numbers, Chinese and characters in the string
1-14 express托管静态资源
Flutter 嵌套地狱?不存在的,ConstraintLayout 来解救!
布隆过滤器
FreeRTOS record (IX. an example of a bare metal project transferring to FreeRTOS)
qsort函数和模拟实现qsort函数
NCAT detailed introduction (Reprint)
The 16th Heilongjiang Provincial Collegiate Programming Contest
升级kube出现unknown flag: --network-plugin