通常要從伺服器端下載檔案, 不是用sftp就是scp:
user@local_host$ scp user@remote_host:my_file .
假設已經ssh到伺服器端了, 有沒有更簡潔的指令能把檔案傳到本機端?
user@local_host$ ssh user@remote_host
Welcome to remote_host!
user@remote_host$ ssh_get my_file .
user@remote_host@ exit
logout
Connection to remote_host closed.
user@local_host$ ls
my_file
有類似ssh_get, ssh_put這種指令嗎?
--
user@local_host$ scp user@remote_host:my_file .
假設已經ssh到伺服器端了, 有沒有更簡潔的指令能把檔案傳到本機端?
user@local_host$ ssh user@remote_host
Welcome to remote_host!
user@remote_host$ ssh_get my_file .
user@remote_host@ exit
logout
Connection to remote_host closed.
user@local_host$ ls
my_file
有類似ssh_get, ssh_put這種指令嗎?
--
All Comments