windows ternimal 使用
1 安装
在微软商店搜索 windows ternimal
,点击安装获取即可。
主题设置
主题网站推荐:网站1、网站2
选择好看的主题复制下来,粘贴到 setting.json 里面的 theme 下面即可。
2 配置ssh免密码登录
以本人电脑为例,client端
即本人使用的windows端
,server端
为需要远程连的服务器端
(ubuntu端)
2.1 client端 生成ssh秘钥文件
在cmd下输入ssh-keygen
,系统会自动在 C:\Users\用户名\.ssh
下生成这两个文件
id_rsa 私钥
id_rsa.pub 公钥 (里面的内容需要放在服务器端)
2.2 server端 添加用户公钥
需要将client端的公钥内容,粘贴到server端 .ssh/authorized_keys
文件中,一般.ssh
的位置可能在 /root/.ssh
或 /home/user/.ssh
。
假如没有找到 .ssh
的文件夹,则在终端输入ssh-keygen
,会在 /home/user/.ssh
文件夹下生成密钥,位置可以自定义,二次认证密码也可以设置。
authorized_keys
文件没有的话自己创建。最后把client的公钥粘贴到authorized_keys
中即可
3 添加自定义的 ssh 会话连接
在 setting.json 中添加相应的ssh会话信息即可
"list": [
{
// cmd
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"name": "cmd",
"commandline": "cmd.exe",
"hidden": false,
"tabTitle": "cmd"
},
{
// 自己创建的服务器
"name": "Ubuntu 18.04",
"commandline": "ssh name@IP -p 22", //ssh + 服务器用户名 @ 服务器ip
"hidden": false
}
]