Snippets

litmis ssh debugging with syslogd

Created by Aaron Bartell last modified

| | | - | - | - | - IBM i Hosting | Cybersource Toolkit for i | RPG-XML Suite | Payment Terminal Toolkit for i | UPS Toolkit for i

#SSH woes are fixable Sometimes I have ssh issues like not being able to log in with a public key and being forced to enter a password. Today I learned you can quickly learn about the issues by taking two steps.

##Step 1 Create the following file.

$ touch /QOpenSys/etc/syslog.conf

##Step 2 Start the syslog daemon in debug mode.

$ syslogd -d

Now attempt your ssh action and the session running the syslogd -d command will give messages as to why things aren't working as expected.

But SSH won't even start!

Then you can go into a shell and start it from PASE to get more info. You can use CALL QP2TERM and then type this:

$ /usr/sbin/sshd -ddd

You should be able to see any startup errors conveyed to the screen.

Things To Check

Make sure you can accept greater than 8 char profile names.

ADDENVVAR ENVVAR(PASE_USRGRP_LIMITED) VALUE('N') LEVEL(*SYS)

Make sure your directory permissions are correct.

chmod 755 ~
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
chmod 600 ~/.ssh/authorized_keys

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.