General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Mar 28, 2017 11:34 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: sshd Log file
PostPosted: Sat Jan 07, 2017 8:23 pm 
Offline

Joined: Sat Jan 07, 2017 8:11 pm
Posts: 1
Hello,

I've installed ffp on my Zyxel NS320 and I try to configure the chrooted sftp account.
I've modified the /usr/local/zy-pkgs/ffproot/ffp/etc/ssh/sshd_config and restarted sshd. However the sftp connexion the chrooted user not work, and I search to see the error message.

I found no log file in /var/log.

Where are the log of sshd on the NS 320. More generally where are the system log ?

Thanks !
Catalin...


Top
 Profile  
 
 Post subject: Re: sshd Log file
PostPosted: Mon Jan 09, 2017 6:51 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2210
If you want to enable logging for sshd you need to update it. All steps below is supposed to be done via ssh.
Enable telnet first as fallback option to login .
Code:
chmod a+x /ffp/start/telnetd.sh
sh /ffp/start/telnetd.sh start

Update openssh with openssl together:
Code:
slacker -UaA br2:{openssh,openssl}

Restart sshd service:
Code:
sh /ffp/start/sshd.sh restart

Stop it:
Code:
sh /ffp/start/sshd.sh stop

Edit sshd startup file - /ffp/start/sshd.sh and change row sshd_flags="" to
sshd_flags="-E /ffp/var/log/sshd.log"
Start sshd service again:
Code:
sh /ffp/start/sshd.sh start

Do your tests and check log file.
Logs verbosity is controlled in /ffp/etc/ssh/sshd_config file by parameter-LogLevel. INFO by default. If INFO is not enough verbose then uncomment row #LogLevel INFO and change INFO to any desirable value:
QUIET, FATAL, ERROR,VERBOSE, DEBUG, DEBUG1, DEBUG2, or DEBUG3.
After making changes in sshd_config file you need to reload it for running sshd service:
Code:
sh /ffp/start/sshd.sh reload

After all testing revert changes back. Keep in mind that startup file /ffp/start/sshd.sh should be edited only if sshd service is stopped.
Start it after editing and check if you can login as root directly via ssh. Then disable telnet service:
Code:
chmod a-x /ffp/start/telnetd.sh
sh /ffp/start/telnetd.sh stop


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group