I'm trying to use sftp to transfer files between two pcs. I have openssh on my receiving pc.
I'm a total beginner in sftp/ssh and it is so wild/seems so unsecure that I can access my pc only with my user password. How do you manage security in sftp/ssh ?
I'd like to toggle my server ability to accept ssh connections on and of . How can I do it (so to be totally sure) ? Do I uninstall and reinstall openssh every time I need to use it ?
I also would like to use only a KEY to access my server without a password . It seems so insecure to just add the keys to the server , I usually keep a very short password on my server PC just so other users don't accidentally access my user while trying to get into their user. How do I configure my server to use only a KEY , not a password and disable any connectivity through a password. I got the impression that if I add the key and leave a very short password someone else might just access from the network.
Sorry If the question is not very well formulated , english is not my first language and I'm a total beginner in ssh. It seems that just following tutorials or reading documentation is not enough.