Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Why does SSH stop accepting PW, works fine after reboot.

Featured Replies

I'm using the newest Ubuntu image for my RockPi4C+, and from time to time, I try to login, but it wont allow it. If I reboot, I can login just fine. I tried from 2 devices, both devices could not ssh into the pi. 

 

running a cat on /var/log/auth.log doesnt show any attempts at all. After a reboot, I cat the log and can see my login attempts present after the reboot. Its like the sshd service is dying. 

Mar 17 00:15:01 rockpi-4cplus CRON[1869]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 17 00:15:01 rockpi-4cplus CRON[1868]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 17 00:15:01 rockpi-4cplus CRON[1869]: pam_unix(cron:session): session closed for user root
Mar 17 00:15:01 rockpi-4cplus CRON[1868]: pam_unix(cron:session): session closed for user root
Mar 17 00:17:01 rockpi-4cplus CRON[1883]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 17 00:17:01 rockpi-4cplus CRON[1883]: pam_unix(cron:session): session closed for user root
Mar 17 00:22:48 rockpi-4cplus sudo: ben : TTY=pts/0 ; PWD=/home/ben ; USER=root ; COMMAND=/usr/sbin/service ssh restart
Mar 17 00:22:48 rockpi-4cplus sudo: pam_unix(sudo:session): session opened for user root(uid=0) by ben(uid=1000)
Mar 17 00:22:48 rockpi-4cplus sshd[965]: Received signal 15; terminating.
Mar 17 00:22:48 rockpi-4cplus sshd[1903]: Server listening on 0.0.0.0 port 22.
Mar 17 00:22:48 rockpi-4cplus sshd[1903]: Server listening on :: port 22.
Mar 17 00:22:48 rockpi-4cplus sudo: pam_unix(sudo:session): session closed for user root
Mar 17 00:22:52 rockpi-4cplus sudo: ben : TTY=pts/0 ; PWD=/home/ben ; USER=root ; COMMAND=/usr/sbin/service ssh status
Mar 17 00:22:52 rockpi-4cplus sudo: pam_unix(sudo:session): session opened for user root(uid=0) by ben(uid=1000)
Mar 17 00:22:52 rockpi-4cplus sudo: pam_unix(sudo:session): session closed for user root
Mar 17 00:25:01 rockpi-4cplus CRON[1911]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Mar 17 00:25:01 rockpi-4cplus CRON[1911]: pam_unix(cron:session): session closed for user root
Mar 17 00:27:21 rockpi-4cplus sudo: ben : TTY=pts/0 ; PWD=/home/ben ; USER=root ; COMMAND=/usr/bin/cat /var/log/auth.log
Mar 17 00:27:21 rockpi-4cplus sudo: pam_unix(sudo:session): session opened for user root(uid=0) by ben(uid=1000)

 

Can someone help? I dont know what else to look at. 

 

I checked the Journal but nothing. 

 

ben@rockpi-4cplus:~$ journalctl | grep sshd
Mar 16 23:17:10 rockpi-4cplus sshd[965]: Server listening on 0.0.0.0 port 22.
Mar 16 23:17:10 rockpi-4cplus sshd[965]: Server listening on :: port 22.
Mar 17 00:11:24 rockpi-4cplus sshd[1664]: Accepted password for ben from 10.0.0.245 port 56146 ssh2
Mar 17 00:11:24 rockpi-4cplus sshd[1664]: pam_unix(sshd:session): session opened for user ben(uid=1000) by (uid=0)
Mar 17 00:22:48 rockpi-4cplus sshd[965]: Received signal 15; terminating.
Mar 17 00:22:48 rockpi-4cplus sshd[1903]: Server listening on 0.0.0.0 port 22.
Mar 17 00:22:48 rockpi-4cplus sshd[1903]: Server listening on :: port 22.

 

Edited by benisai

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.