To copy a file from a remote computer to the computer you are working at, you type:
scp user@remote-computer:/remote/path/remote-file /local/path/local-file
You will then be prompted for the user's password on the remote computer. After you enter it, the file will be copied.
Wednesday, November 12, 2008
Secure you ssh sessions!!!!
So when you scan you Linux box you see that ssh v1 is allowed and you read that it has some security flaws and you should disable it. Well that is correct not only should you disable that you should also disable sshing in to the box as root. So now all you need to know is how to do it.
All you have to do is modify 2 lines in your sshd_config file. Which is found in /etc/ssh/. When you open up the file in vi or your fav. editor you will see (with some searching) the following 2 entries
#Protocol 2,1
#PermitRootLogin yes
You will need to change these to lines to look as below.
Protocol 2
PermitRootLogin no
Then save the file and restart the ssh service
service sshd restart
There you go now you are a little more secure than you were this morning when you woke up :)
As a side note you should also make sure that your version of ssh is updated to the latest most secure version.
All you have to do is modify 2 lines in your sshd_config file. Which is found in /etc/ssh/. When you open up the file in vi or your fav. editor you will see (with some searching) the following 2 entries
#Protocol 2,1
#PermitRootLogin yes
You will need to change these to lines to look as below.
Protocol 2
PermitRootLogin no
Then save the file and restart the ssh service
service sshd restart
There you go now you are a little more secure than you were this morning when you woke up :)
As a side note you should also make sure that your version of ssh is updated to the latest most secure version.
Subscribe to:
Posts (Atom)