当前位置:网站首页>连接公司跳板机取别名
连接公司跳板机取别名
2022-04-23 14:04:00 【学海无涯乐做舟】
1.确认是否存在.bash_profile文件
创建该文件时一般都会选择在当前用户目录下,即Mac下的.bash_profile 文件的路径是 /Users/YourMacUserName/.bash_profilecd ~
可直接到/Users/YourMacUserName/目录下
查看是否有.bash_profile
文件
如果没有创建 touch .bash_profile
2.配置别名:
打开文件 vi .bash_profile 添加下面一行代码
alias st="ssh 企业邮箱名@relay01.mokahr.com -p 60022"
3.保存之后重新打开terminal或者执行
source ~/.bash_profile
打开Mac终端窗口输入st成功进入跳板机
版权声明
本文为[学海无涯乐做舟]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41918841/article/details/124326872
边栏推荐
猜你喜欢
随机推荐
Record a strange bug: component copy after cache component jump
org.apache.parquet.schema.InvalidSchemaException: A group type can not be empty. Parquet does not su
微信小程序获取登录用户信息、openid和access_token
leetcode--977. Squares of a Sorted Array
9月8日,临去松山湖的前夜
Nacos+AspnetCore+Ocelot实战编码
Intégration de Clusters CDH Phoenix basée sur la gestion cm
Call wechat customer service applet
Can global variables be defined in header files
Kettle -- control parsing
使用Postman进行Mock测试
groutine
帆软报表设置单元格填报以及根据值的大小进行排名方法
Wechat applet positioning and ranging through low-power Bluetooth device (2)
Jmeter安装教程以及我遇到的问题的解决办法
Lin Lin, product manager of Lenovo: network failure of local network operator in Tianjin. The background server of Zui system can't work normally for the time being
烟雾传感器(mq-2)使用详细教程(基于树莓派3b+实现)
_模_板_
Use of WiFi module based on wechat applet
查询2013年到2021年的数据,只查询到2020的数据,遇到了这个问题所进行的解决办法