[Mac OS] SSH connection using terminal and file upload download


Writing time : 2017-08-18 13:38:22

SSH connection using terminal and file upload download

You can use the terminal, which is the default Mac program, to connect SSH and upload files and download files.

SSH connection


ssh -p port number account@domain

If you use the default port, you can omit the -p option and port number.

#ssh -p 2200 root@site-domain.com  

Downloading files using SCP


ssh -p port number account@domain: remote path local path

#scp -P 2200 root@site-domain.com:/var/www/html/aaa.txt /Users/dev/Documents/  

Uploading files using SCP


ssh -p port number local path account@domain: remote path

#scp -P 2200 /Users/dev/Documents/abc.txt root@site-domain.com:/var/www/html/  

Reference URL


https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4$ITALICWORDscp$ITALICWORD%EC%82%AC%EC%9A%A9%EB%B2% 95/


Warning: require(../footer/php): failed to open stream: No such file or directory in /var/www/html/devez/website/src/blog/mac/ Connect and download file upload.php on line 32

Fatal error: require(): Failed opening required'../footer/php' (include_path='.:/usr/share/pear:/usr/share/php') in /var /www/html/devez/website/src/blog/mac/ SSH connection using terminal and file upload download.php on line 32

Previous post