alexmb7 2022-08-18 12:13:25
but the others
alexmb7 2022-08-18 12:13:40
the .pub is your free.to paste auth str
alexmb7 2022-08-18 12:13:53
and the non .pub is your private.key to.keep
alexmb7 2022-08-18 12:14:02
that means, pub to auth
alexmb7 2022-08-18 12:14:11
and, a matching filename
alexmb7 2022-08-18 12:14:37
not user/.ssh/blabla and blabla.pub but id_rsa or what u did
alexmb7 2022-08-18 12:14:48
when u did ssh-genkeys.or whatever the cmd was
alexmb7 2022-08-18 12:14:56
next.time leave out.blank the filename
alexmb7 2022-08-18 12:14:59
and itll.work
alexmb7 2022-08-18 12:16:13
min 2022-08-18 12:12:27
Already done.
Found ssh verbose mode:
debug1: Next authentication method: publickey
debug1: Offering public key: /home/user/.ssh/id_rsa RSA SHA256:MCf5Kz0FcKSg/EDQ7BizkCTWZWMdaYECq6KN0DBYFa4 agent
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Trying private key: /home/user/.ssh/id_ed25519_sk
debug1: Trying private key: /home/user/.ssh/id_xmss
debug1: Next authentication method: password
Found ssh verbose mode:
debug1: Next authentication method: publickey
debug1: Offering public key: /home/user/.ssh/id_rsa RSA SHA256:MCf5Kz0FcKSg/EDQ7BizkCTWZWMdaYECq6KN0DBYFa4 agent
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa_sk
debug1: Trying private key: /home/user/.ssh/id_ed25519
debug1: Trying private key: /home/user/.ssh/id_ed25519_sk
debug1: Trying private key: /home/user/.ssh/id_xmss
debug1: Next authentication method: password
what does ls -Ald git/.ssh git/.ssh/* say
alexmb7 2022-08-18 12:16:35
ls -ld of.the dir
min 2022-08-18 12:16:40
sudo diff /home/user/.ssh/id_rsa.pub /srv/git/.ssh/authorized_keys is empty
alexmb7 2022-08-18 12:16:46
and ls -l.of thr.auth
alexmb7 2022-08-18 12:17:07
min 2022-08-18 12:16:40
sudo diff /home/user/.ssh/id_rsa.pub /srv/git/.ssh/authorized_keys is empty
1st sudo su –
alexmb7 2022-08-18 12:17:11
sudo.su –
alexmb7 2022-08-18 12:17:15
without dot
alexmb7 2022-08-18 12:17:20
then
alexmb7 2022-08-18 12:17:27
cmds again lemme paste u
min 2022-08-18 12:19:36
alexmb7 2022-08-18 12:16:13
what does ls -Ald git/.ssh git/.ssh/* say
ls -Ald /srv/git/.ssh /srv/git/.ssh/*
drwx——. 1 git git 30 авг 18 11:35 /srv/git/.ssh
-rw——-. 1 git git 566 авг 18 10:55 /srv/git/.ssh/authorized_keys
min 2022-08-18 12:21:00
min 2022-08-18 12:16:40
sudo diff /home/user/.ssh/id_rsa.pub /srv/git/.ssh/authorized_keys is empty
Is empty anyway
alexmb7 2022-08-18 12:21:30
sudo su – <<<”
cd ~git
rm -rf .ssh
mkdir .ssh
cat ~user/.ssh/*.pub >>~git/.ssh/authorized_keys
chown -R git. ~git/.ssh
chmod 700 ~git/.ssh
chmod 600 ~git/.ssh/authorized_keys”
cd ~git
rm -rf .ssh
mkdir .ssh
cat ~user/.ssh/*.pub >>~git/.ssh/authorized_keys
chown -R git. ~git/.ssh
chmod 700 ~git/.ssh
chmod 600 ~git/.ssh/authorized_keys”
alexmb7 2022-08-18 12:21:36
try copypaste.this
alexmb7 2022-08-18 12:21:51
min 2022-08-18 12:19:36
ls -Ald /srv/git/.ssh /srv/git/.ssh/*
drwx——. 1 git git 30 авг 18 11:35 /srv/git/.ssh
-rw——-. 1 git git 566 авг 18 10:55 /srv/git/.ssh/authorized_keys
drwx——. 1 git git 30 авг 18 11:35 /srv/git/.ssh
-rw——-. 1 git git 566 авг 18 10:55 /srv/git/.ssh/authorized_keys
looks.good
alexmb7 2022-08-18 12:22:02
but.u need.a .pub thats.not.empty
alexmb7 2022-08-18 12:22:11
u fuxked.up cause.u didnt sudo su –
min 2022-08-18 12:22:39
alexmb7 2022-08-18 12:22:02
but.u need.a .pub thats.not.empty
It has 566 bytes
alexmb7 2022-08-18 12:22:53
i.made this whole ‘script’ for.ya, either copypaste or.go , exact , one by one
the cmds are inside root.shell must
alexmb7 2022-08-18 12:23:07
cat authrozied_keys
alexmb7 2022-08-18 12:23:29
does.it look like.<hostname> <longstring>
alexmb7 2022-08-18 12:24:03
u need a pub key thats not empty,mjne, i dunno.lemme check
alexmb7 2022-08-18 12:24:38
mjne is 7xx yours.is normal
min 2022-08-18 12:25:27
alexmb7 2022-08-18 12:21:30
sudo su – <<<”
cd ~git
rm -rf .ssh
mkdir .ssh
cat ~user/.ssh/*.pub >>~git/.ssh/authorized_keys
chown -R git. ~git/.ssh
chmod 700 ~git/.ssh
chmod 600 ~git/.ssh/authorized_keys”
cd ~git
rm -rf .ssh
mkdir .ssh
cat ~user/.ssh/*.pub >>~git/.ssh/authorized_keys
chown -R git. ~git/.ssh
chmod 700 ~git/.ssh
chmod 600 ~git/.ssh/authorized_keys”
It didn’t change anything
alexmb7 2022-08-18 12:25:41
:/
alexmb7 2022-08-18 12:25:48
maybe
alexmb7 2022-08-18 12:26:01
the auth.method, encryption, isnt supported