Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
rb:ssh [08/09/2018 00:33] andrew [Timeout] |
rb:ssh [08/07/2019 11:16] (current) andrew [Debug config sshd_config] |
||
---|---|---|---|
Line 64: | Line 64: | ||
===== Debug config sshd_config ===== | ===== Debug config sshd_config ===== | ||
+ | |||
Running the sshd daemon in the foreground allows any error messages to be seen, in this example, syslog was just showing lots of starts and stops and then a final fatal ''init: ssh respawning too fast, stopped'' message. Also by specifying a different port to 22, you can avoid interfering with the normal sshd operation. | Running the sshd daemon in the foreground allows any error messages to be seen, in this example, syslog was just showing lots of starts and stops and then a final fatal ''init: ssh respawning too fast, stopped'' message. Also by specifying a different port to 22, you can avoid interfering with the normal sshd operation. | ||
Line 72: | Line 73: | ||
/etc/ssh/sshd_config line 96: Directive 'UsePAM' is not allowed within a Match block | /etc/ssh/sshd_config line 96: Directive 'UsePAM' is not allowed within a Match block | ||
root@ftphost01:/etc/ssh# | root@ftphost01:/etc/ssh# | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== SSH Agent ===== | ||
+ | |||
+ | |||
+ | Add this to your .bash_profile: | ||
+ | <code> | ||
+ | SSHAGENT=/usr/bin/ssh-agent \\ | ||
+ | SSHAGENTARGS="-s" \\ | ||
+ | if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | ||
+ | eval `$SSHAGENT $SSHAGENTARGS` | ||
+ | trap "kill $SSH_AGENT_PID" 0 | ||
+ | fi | ||
</code> | </code> | ||
===== Multifactor Auth ===== | ===== Multifactor Auth ===== |