Skip to content

USE SCP WITH ALIAS

first step:

alias hostNameAlias='ssh hostName@xx.xx.xxx.xx'

second step:

vim ~/.ssh/config

Host hostNameAlias
HostName xx.xx.xxx.xx
User hostName
Port 22

third step:

# connect
ssh hostNameAlias
# scp
scp /some/file tencent:/path/to/storage/loaction

Comments