3.远程连接虚拟机
来源:互联网 发布:医疗软件搜索下载 编辑:程序博客网 时间:2024/05/17 03:51
1.9 使用putty远程连接linux
打开putty,填入虚拟机的ip,端口一般为22,并将其保存为一个会话,命名,保存一下,点open即可连接
一些优化配置:
回滚行数:
传输字符集:
1.10 使用Xshell连接linux
和putty类似,新建一个会话:
填入会话名称,虚拟机ip,端口号,点确定保存即可连接
还可以直接填入用户名密码:
在这里还可以调整选项卡的排列方式:
1.11/1.12 密钥认证
使用PuTTYgen生成秘钥
点击生成并在空白区域移动鼠标:
生成后如下图所示,分别保存公钥和私钥:
在服务器上放置公钥:
[root@localhost ~]# mkdir /root/.ssh
[root@localhost ~]# chmod 700 /root/.ssh
[root@localhost ~]# vi /root/.ssh/authorized_keys
[root@localhost ~]# setenforce 0
在客户端放置私钥:
再次登录使用秘钥认证:
使用Xshell生成秘钥:
依照向导提示很容易生成密钥对,在服务器上放置公钥的方式与putty类似,在客户端指定使用密钥认证并选择对应的秘钥,再次登录即使用秘钥认证:
SecureCRT通过密钥登录:
http://blog.csdn.net/langkeziju/article/details/53024031
/etc/ssh/sshd_config
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
/etc/ssh/sshd_config //This is the sshd server system-wide configuration file. If you want to change the port on a SELinux system, you have to tell SELinux about this change.
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes
# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no
PasswordAuthentication yes
阅读全文
0 0
- 3.远程连接虚拟机
- 远程连接VirtualBox中的虚拟机
- visualVM连接远程Java虚拟机
- ubuntu虚拟机服务器远程连接+mysql连接
- 怎样SSH远程连接虚拟机中的Ubuntu
- Winconnect 多用户远程连接一台虚拟机
- 怎样SSH远程连接虚拟机中的Ubuntu
- sqlserver 在xp虚拟机安装,远程连接
- 远程工具不能连接接到虚拟机
- 虚拟机下Mysql不能远程连接解决方案
- 远程连接centos下的虚拟机
- SSH远程连接VMware虚拟机中linux
- 使用SecureCRT远程连接虚拟机CentOS
- 远程连接虚拟机数据库(oracle)
- 虚拟机远程连接网卡设置步骤
- 宿主机远程连接虚拟机redis
- 使用SecureCRT远程连接虚拟机CentOS
- 远程启动VMware并连接虚拟机
- 司马迁给当权者上了一堂经济课,可谓石破天惊!
- 常用adb命令
- TextView 实现富文本 可以点击
- android一行代码实现沉浸式布局效果
- YII2.0 内置加密随机数
- 3.远程连接虚拟机
- 我从阿里面试回来,想和Java程序猿谈一谈
- C语言实现二叉查找树的输出
- 设置线程的名字
- JavaWeb项目启动时,自动执行代码的三种方式
- 使用 OpenVAS 漏洞扫描软件,编写简单的nasl脚本
- MySQL 添加索引,删除索引及其用法
- 谈谈搭建堡垒机的几条原则
- json, recyclerView问题