Uploading files from local linux machine to remote linux server.
So recently I become serious with learning web development. PHP and MySQL. I bought a shared hosting plan. Tinkered with it a bit. Got myself familiar with how it worked. Then I came across one problem. I needed a way to upload files from my Ubuntu machine to my hosting server which ran linux too. The GUI provided by the hosting company only acommodates 2 files to be transfered simultaneously. It would be too cumbersome to upload many files that way.
So I googled around and I found this website. It turned out that the command to do that is scp. I copy the command below:
So I googled around and I found this website. It turned out that the command to do that is scp. I copy the command below:
scp file-to-send user@host:/path/to/place/fileVery easy. I also learnt something about ssh. To connect to my shared hosting using ssh, I would do the following:
ssh user@mydomain.comAnd then I will be prompted for my password. Well, that's something new for me :D