linux - Copying a local file from Mac to an ssh session in terminal -
i'm new using bash commands , having trouble. i'm ssh'ing linux box contains of work files. have local file on mac need copy onto server.
here steps i've gone through far: 1) ssh usrname@orgname.edu 2) entered password 3) pwd 4) working directory: home/usrname
i'm stuck after this. have local folder in documents in mac. want copy working directory on server i"m ssh'ed into.
appreciate help.
when ssh remote machine, it's if sitting in front of other machine , execute commands in it. while in state, cannot copy file (or from) it. instead have use different tool, scp
, belongs in ssh
family , in fact calls ssh
behind scenes. how copy local directory remote machine:
scp -rp /path/to/local/dir usrname@orgname.edu:/path/to/remote/dir
i used -r
mode (which stands recursive) copy directory recursively. see manual of scp more details
Comments
Post a Comment