SSH Remote Access Authentication Tips

Friday, October 10th, 2008

My friend was try to setup Linux SSH public key authentication without password and he’s keep getting password prompt. I will not going to go through how to setup SSH public key authentication here and I just would like to share few troubleshoot tips in order to fix the similar problem here:
1. Checking /var/log/messages file
Basically [...]

How To Check Which Port Is Listern or Open on Linux

Friday, September 12th, 2008

For some security reason you may configure SSH or any other protocol using different kind of port number on Linux server. Sometimes it’s important to know which ports are actually listern or open to the system network, it may open for network instruction or hacking.
Basically there are few methods to see which ports are [...]

SSH problem

Thursday, August 21st, 2008

I can’t login to the server using SSH and the TELNET service is NOT enable by default. Thanks god, I have DELL DRAC enable, I managed to login using console.
I’m getting an error messages in /var/log/messages and SSH connection refused error on one of my SuSE Linux box as below:
Aug 2 16:20:05 planetmy sshd[22531]: fatal: [...]

How to DENY SSH access for certain user on Linux

Monday, August 18th, 2008

Due to some security reason, you may require to block certain user SSH access to Linux box.
Edit the sshd_config file, the location will sometimes be different depend on Linux distribution, but it’s usually in /etc/ssh/.
Open the file up while logged on as root:
vi /etc/ssh/sshd_config
Insert a line:

DenyUsers username1 username2 username3 username4

Referring to #man sshd_config:

DenyUsers
[...]

SFTP connection error

Wednesday, August 6th, 2008

One of my customer mentioned to me that SFTP problem.
Question: I found an error message on /var/log/messages as below:
fatal: mm_request_receive_expect: read: rtype 48 != type 46
fatal: mm_request_receive_expect: read: rtype 48 != type 46
while make a SFTP(SSH) connection using Ipswitch WS_FTP Professional client.
Solution: Make changes on SSH config file
Edit /etc/ssh/sshd_config and change PasswordAuthentication to yes. [...]