Q: How to config ssh ?
Hello I am not really Terminal Savvy. But I currently want to use ssh to remote log in so I can access my files from anywhere using Filezilla. Wile still having the most secure connection that I can possibly have.
I currently did set up ssh and it is working I am using Filezilla so I can remotely access my files. But my worry is using my Mac account name and password. I would like to know how to lock down my server as much as possibe to avoid hackers.
1. I'm not Terminal Savvy
2. I would like to know how to disable protocol 1 (Heard it was less secure)
3. I would like to know how to disable root login.
4. I use Filezilla for (SFTP) secure ftp and still want to be able to use this with the above security measures in effect if possible.
Just wondering how or if this is possible your help would be greatly appreciated.
Mac Pro, Mac OS X (10.6.8)
Posted on Dec 30, 2012 8:24 PM
Step 3 - Edit sshd_config
This must be done on the SSH server
Open TextWrangler. File, Open, see the picture below to get to sshd_config. Steps are numbered from 1 to 6
When you try to edit the file, the following panel will pop up. Click Unlock
Search for the following 3 lines
#PermitRootLogin yes
#PasswordAuthentication no
#ChallengeResponseAuthentication yes
Change them as
PermitRootLogin no
PasswordAuthentication no
ChallengeResponseAuthentication no
To save the file you must provide your admin username and password
Close TexWrangler.
You're done.
Changes should be in place at once without further actions. To be sure, stop and restart Remote Login in System Preferences, Sharing.
Testing time. Go to the ssh client
Open Terminal. Type
ssh user@sshserver
change user with the username on the server and sshserver with the sshserver name or its IP adress
If everything was fine you are connected to the ssh server and no password was required, except for your private key passphrase if you set it up, because the DSA private key worked that out for you.
Posted on Jan 1, 2013 8:32 AM


