【Mac】【Vagrant】【类xshell的Termora】centos连接步骤

  1. vagrant ssh登入centos7

    sudo systemctl status sshd # 确保 sshd 运行
    sudo firewall-cmd --list-all # 如果启用 firewalld,确保放行 22 端口

    或临时关闭防火墙测试:

    sudo systemctl stop firewalld

如果提示

$ sudo firewall-cmd --list-all

FirewallD is not running

则表示没有启用firewalld

  1. 在termora上建立连接

其中192.168.56.10 是给vagrant设置的私有网络

认证类型选择vagrant默认的public key的方式

添加私钥:

比如我把vagrant虚拟机安装在~/Documents/my_virtual_machine下,那么私钥的位置为

~/Documents/my_virtual_machine/.vagrant/machines/default/virtualbox/private_key

注意在点击termora的添加私钥弹窗中是看不到这个隐藏目录的,可以通过cmd+shift+. 临时显示隐藏文件或者目录

配置好之后可以点击测试连接,当提示连接成功之后,就表示配置没有问题了

相关推荐
欧云服务器2 天前
怎么让脚本命令可以同时在centos、debian、ubuntu执行?
ubuntu·centos·debian
xiaoliuliu123452 天前
CentOS 7 安装 gcc-4.8.5-44.el7.x86_64.rpm 详细步骤(含依赖解决)
linux·运维·centos
txzz88883 天前
CentOS-Stream-10 Secure Shell服务器sshd_config配置文件
linux·centos·sshd_config·ssh配置
harmful_sheep3 天前
mac生效的终端查看
macos
txzz88883 天前
CentOS-Stream-10 Secure Shell服务器
linux·centos·ssh·secure shell·ssh服务器
iOS门童3 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~3 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
文静小土豆3 天前
CentOS 7 OpenSSH 10.2p1 升级全攻略(含离线安装与回退方案)
linux·运维·centos·ssh
差不多程序员3 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843943 天前
mac 安装python
开发语言·python·macos