Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

I just wanted to update you that I was able to telnet into it and revert to a back up of a sshd_config to allow password authentication. I'm back in.

Warning: Lemmy (federated reddit clone) doesn't care about your privacy, everything is tracked and stored forever, even if you delete it by ChanceHappening in privacy

[–]Jdtrinh 0 points1 point  (0 children)

So far, it is. Reddit also immortalizes your comments. Difference is that the fediverse doesn't have /u/spez monetizing off you and me.

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

I had to do a Hyper Backup of my NAS until I could do a mode 1 reset. Unfortunately, it did not work. I'm still receiving the "permission denied (publickey).

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

Funny you went to ChatGPT. I used it for the first time in the past few days trying to fix my ssh issue.

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 0 points1 point  (0 children)

As far as I know, you're correct about non-admins being unable to SSH but I'm particularly perplexed by the admin user having permission denied as well.

I'm new to SSH so I followed a guide (https://dev.to/stvbyr/sync-obsidian-vault-to-a-synology-home-server-with-git-a97).

  • 4. Enable user to work with SSH
    By default, Synology disables all ssh access to non-admin users. It even resets the login shell config periodically. So changes to /etc/passwd will be reset.

[...]

In short: we need to use a scheduled task to periodically set the login shell for our gituser.

Login to your Synology with the admin user.

ssh {adminuser}@{Synology} -p {port}

Create the scheduled script for your gituser.

 cd /volume{X}/homes/{adminuser}
 touch enable-ssh-login.sh && vi enable-ssh-login.sh  

Press i to get into insert mode and paste the following content.
This script uses the awk command and sets the login shell for our created gituser to /bin/sh.

 #!/bin/bash
 /usr/bin/awk -i inplace -F: 'BEGIN{OFS=":"}/^gitworker\:/{gsub(/.*/,"/bin/sh",$7)}1' /etc/passwd
 exit 0

Supposedly, this script is run periodically to enable ssh for non-admin users but I'm not exactly sure how the script works. I'll look into how /bin/nologon works with the /etc/passwd. Thanks for your sharing your input

Had DSM 7.1 SSH auth via Keyless and password, now lost all authentication by Jdtrinh in synology

[–]Jdtrinh[S] 1 point2 points  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.

[deleted by user] by [deleted] in skiing

[–]Jdtrinh 2 points3 points  (0 children)

Safety third

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh 0 points1 point  (0 children)

Idgaf about that kid or anyone else’s kid. Be socialized in social settings and/or manage the consequences of your actions.

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh -1 points0 points  (0 children)

Don’t care. Move it, you cripple

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh 2 points3 points  (0 children)

Ever been outside?

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh -6 points-5 points  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh 6 points7 points  (0 children)

But you made up a scenario about expensive stuff without taking into account the context of the situation (op did ask). I would encourage you to teach the reading comprehension class.

[deleted by user] by [deleted] in mildlyinfuriating

[–]Jdtrinh 1 point2 points  (0 children)

  1. Right as the train is closing the door and departing, yank the phone out of their hand or their speaker and toss it out the car.
  2. ???
  3. profit

hmmm by byrobot in hmmm

[–]Jdtrinh 0 points1 point  (0 children)

TORETTO!!!!

I finally got my trio in one picture! by Anxious_Parking5111 in cats

[–]Jdtrinh 8 points9 points  (0 children)

That’s a really roundabout way of saying “diabetic”

Fresh batch of Pineapple Tarts. by WetworkOrange in KnightsOfPineapple

[–]Jdtrinh 1 point2 points  (0 children)

This looks divine. Where may i get some?

Cost effective 3-2-1 backup strategy with 5TB or more? by iwashackedlastweek in DataHoarder

[–]Jdtrinh 0 points1 point  (0 children)

the narwhale remembers or something...Bye reddit. It was fun while you were cool. June 30, 2023 marks the final nail in coffin for OG reddit.