Have FTP running-Now I want to switch to SFTP. How?

My MacMini at work is open over FTP, so I can access files remotely. Trouble is, I want to secure the data transfers, so FTP won't cut it.
So, I just need to confirm with the knowledgeable: to switch to SFTP, do I just close off Port 21 on my office router (or at least cancel the Port Forward of Port 21 from my router to my MacMini) and then open up Port 22. As long as everything else is already OK since FTP is working fine, do I need to implement any other change before I'm good to go with SFTP?
As always, thanks, people.

OK the suggestions were just things to think about for the future. You can evolve into them as you feel the need.
I'm not that advanced in my knowledge of scp, never mind appreciating why scp might be a better option than SFTP.
scp is the ssh cp command. It works very similar to regular Unix cp command, except over a secure ssh connection (just like sftp).
scp /path/to/file [email protected]:/where/to/put/it
scp [email protected]:/path/to/file /where/to/put/it
scp -r /directory/tree/to/copy [email protected]:/where/to/put/it
scp file1 file2 file3 file4 [email protected]:/where/to/put/them
scp *.txt [email protected]:/where/to/put/them
scp [email protected]:"/somewhere/*.dmg" /where/to/put/them
why use an alternate, higher port number? Is it to throw off any attackers trying to hit my Mac on port 22?
Yes. It does not so much provide additional security, but it does limit the number of Bots knocking on your door trying to break-in. If you look at the "sudo more /var/log/secure.log" and see how many Bots are trying to break into port 22, that is after you forward internet port 22 to port 22 on your Mac. Using a high numbered port just stops your Mac wasting time listening to these break-in attempts.
ssh-keygen is how you create private/public keys. You create the keys on the system you are sitting in front of. You copy the $HOME/.ssh/id_rsa.pub (or id_dsa.pub) file to the remote system you wish to login to. You append the copied id_rsa.pub (or id_dsa.pub) file's contents into the remote user account's .ssh/authorized_keys file. That allows the remote system to know who you are and because your .pub key could have only been put in the remote account's .ssh/authorized_keys file, it knows you are who you say you are and that the local user has agreed to allow you to use the account via ssh/scp/sftp.

Similar Messages

Maybe you are looking for

  • How can i get my iPad back on the internet?

    Everything wad down today...cable, internet, etc.  Now it is back.  My iMac is right back on line and all is well.  The iPad, though, says I am not connected to the internet and nothing is working.  How do I get the iPad back on line.  I checked the

  • How do I change the sorting order of the pictures I want to take from an album to a photo book?

    I have an album that contains over 300 pictures.  I put them in the order I want them to appear in the photo book I want to make.  When I select the entire content and choose Create Book, all the pictures appear on the right hand side of the book in

  • I am not able to redeem my redemption code

    i purchased the adobe cloud because my upgrade to elements 12 never worked despite endless hours talking to would be experts, so i decided to lose the 67 gbp and try creative cloud for ligfhtroom 5 and photoshop cc however i am having the same proble

  • Trouble locating logic's plugins

    Hi, this is really a newbie question to ask..but where in logic do i find the plugins that came with it. is it in the mixer box with the sliders or is it a separate box..i'm looking for deesser and a few things to clean up my vocal tracks.

  • Update entity attribute, auto-refresh ViewObject

    Hi, I have an entity Emp and a ViewObject based on this entity with a where clause like "salary > 2000". I update the salary from 1900 to 2100 at entity level, but the viewObject is not "automatically-refreshed". So my Employee with his new salary 21