linux:windows系统使用ssh连接远程服务器的用法

windows使用ssh连接远程服务器的用法连接远程服务器的用法

1.打开cmd进入命令行工具,输入ssh,不是系统命令则安装ssh
下载地址https://www.mls-software.com/opensshd.html

2.下载完成将安装目录加入环境变量C:\Program Files\OpenSSH\bin

3.远程连接服务器
ssh user@host 如:ssh [email protected]

4.Linux scp 命令用于 Linux 之间复制文件和目录。
scp [可选参数] file_source file_target
1)、上传本地文件到服务器
scp local_file remote_username@remote_ip:remote_file
例:scp /var/www/test.php [email protected]:/var/www/
2)、复制目录
scp -r local_folder remote_username@remote_ip:remote_folder

猜你喜欢

转载自blog.csdn.net/m0_49888984/article/details/111588322