1.在Windows Store中安装 Windows Terminal
2.打开Windows Terminal,使用下拉箭头,打开设置。
3.在左侧点击“添加新配置文件”,再点击“新建空配置文件”。
4.名称随意,命令行中输入:
ssh root@192.168.91.134
点击右下角的保存。
其中:root是linux的用户名,192.168.91.134是linux机器的IP。
5.下拉选择刚才新建项。
第1次连接会提示是否继续连接,输入yes回车即可。
接着输入root用户的密码并回车。
6.终端复制和粘贴的快捷键。
复制:
鼠标左键按住,拖动选择一段文字,再点击鼠标右键。
粘贴:
复制文字后,直接点击右键,或者按Ctrl+V。
如果你需要复制文件到linux主机,在Windows PowerShell 或Windows命令行(cmd.exe)中使用scp命令:
scp d:\mysql80-community-release-el7-4.noarch.rpm root@192.168.91.134:/home/
回车后会提示你输入root的密码。
这段命令的意思是,复制 D盘的mysql80-community-release-el7-4.noarch.rpm 文件到 linux 主机的home目录。
如果电脑中没有scp命令,可以使用xftp软件或其它方式。