macOS操作云服务器
一、终端连接云服务器
通过SSH连接
ssh root@121.36.xx.xx
以下是ssh命令参数含义:
linzheng@linzhengs-MacBook-Air ~ % ssh -h
ssh: illegal option – h
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command]
二、终端传输文件
scp 本地文件路径 root@121.36.xx.xx:服务器文件路径
以下是scp命令参数含义:
scp: illegal option – h
usage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]
[-J destination] [-l limit] [-o ssh_option] [-P port]
[-S program] source … target
三、通过云服务器上的FTP服务器传输文件
全局的话,可能需要使用root用户。目前在配置root用户的时候会出现一些问题,待解决。
794

被折叠的 条评论
为什么被折叠?



