Skip to content

Instantly share code, notes, and snippets.

@queeup
Last active March 9, 2022 15:02
Show Gist options
  • Save queeup/4dd348a79ab16e2f88db65541f5bdfe3 to your computer and use it in GitHub Desktop.
Save queeup/4dd348a79ab16e2f88db65541f5bdfe3 to your computer and use it in GitHub Desktop.
Debug for arm-image-installer and ssh with pubkey to fedora server

Info about host:

$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f  31 Mar 2020

$ cat /etc/os-release 
NAME="elementary OS"
VERSION="6.1 Jólnir"
ID=elementary
ID_LIKE=ubuntu
PRETTY_NAME="elementary OS 6.1 Jólnir"
LOGO=distributor-logo
VERSION_ID="6.1"
HOME_URL="https://elementary.io/"
DOCUMENTATION_URL="https://elementary.io/docs/learning-the-basics"
SUPPORT_URL="https://elementary.io/support"
BUG_REPORT_URL="https://github.com/elementary/triage/issues/new"
PRIVACY_POLICY_URL="https://elementary.io/privacy-policy"
VERSION_CODENAME=jolnir
UBUNTU_CODENAME=focal

arm-image-installer log:

$ LC_ALL=C sudo ./arm-image-installer --target=rpi4 --addkey=/home/queeup/.ssh/test2-ed25519_withoutpassword.pub --media=/dev/sdc --resizefs --image=/home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz --debug

+ shift
+ [ 0 -gt 0 ]
+ whoami
+ [ root != root ]
+ [ /dev/sdc =  ]
+ mount
+ grep on / 
+ awk {printf $1"\n"}
+ ROOTDISK=/dev/sda2
+ echo /dev/sda2
+ head -c 8
+ ROOTDISK=/dev/sda
+ [ /dev/sdc = /dev/sda ]
+ [ rpi4 = cubietruck ]
+ [ rpi4 !=  ]
+ [ -e ./boards.d/rpi4 ]
+ [ ! -f /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz ]
+ [ ! -e /dev/sdc ]
+ echo 

+ echo =====================================================
=====================================================
+ [ -b /dev/fedora/root ]
+ [ /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz !=  ]
+ echo = Selected Image:                                 
= Selected Image:                                 
+ echo = /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz
= /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz
+ echo = Selected Media : /dev/sdc
= Selected Media : /dev/sdc
+ [ rpi4 !=  ]
+ echo = U-Boot Target : rpi4
= U-Boot Target : rpi4
+ [  !=  ]
+ [  !=  ]
+ [  !=  ]
+ [  !=  ]
+ [ 1 !=  ]
+ echo = Root partition will be resized
= Root partition will be resized
+ [  !=  ]
+ [ /home/queeup/.ssh/test2-ed25519_withoutpassword.pub !=  ]
+ echo = SSH Public Key /home/queeup/.ssh/test2-ed25519_withoutpassword.pub will be added.
= SSH Public Key /home/queeup/.ssh/test2-ed25519_withoutpassword.pub will be added.
+ [  !=  ]
+ [  !=  ]
+ echo =====================================================
=====================================================
+ echo  
 
+ echo *****************************************************
*****************************************************
+ echo *****************************************************
*****************************************************
+ echo ******** WARNING! ALL DATA WILL BE DESTROYED ********
******** WARNING! ALL DATA WILL BE DESTROYED ********
+ echo *****************************************************
*****************************************************
+ echo *****************************************************
*****************************************************
+ [  != 1 ]
+ echo  
 
+ echo  Type 'YES' to proceed, anything else to exit now 
 Type 'YES' to proceed, anything else to exit now 
+ echo  
 
+ printf = Proceed? 
= Proceed? + read PROCEED
YES
+ echo YES
+ tr [:lower:] [:upper:]
+ [ YES != YES ]
+ umount /dev/sdc /dev/sdc1 /dev/sdc2 /dev/sdc3
+ fdisk -l /dev/sdc
+ grep LVM
+ [  !=  ]
+ [ /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz !=  ]
+ echo = Writing: 
= Writing: 
+ echo = /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz 
= /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz 
+ echo = To: /dev/sdc ....
= To: /dev/sdc ....
+ xzcat /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz
+ dd of=/dev/sdc bs=4M status=progress
6432759808 bytes (6.4 GB, 6.0 GiB) copied, 423 s, 15.2 MB/s
0+573418 records in
0+573418 records out
6442450944 bytes (6.4 GB, 6.0 GiB) copied, 494.497 s, 13.0 MB/s
+ sync
+ sleep 3
+ echo = Writing image complete!
= Writing image complete!
+ partprobe /dev/sdc
+ [ -e /dev/sdcp5 ]
+ [ -e /dev/sdcp4 ]
+ [ -e /dev/sdcp3 ]
+ [ -e /dev/sdc5 ]
+ [ -e /dev/sdc4 ]
+ export FIRMPART=/dev/sdc1
+ BOOTPART=/dev/sdc2
+ ROOTPART=/dev/sdc3
+ PARTNUM=3
+ [ 1 !=  ]
+ echo = Resizing /dev/sdc ....
= Resizing /dev/sdc ....
+ sync
+ count=0
+ [ 3 = 4 ]
+ [ 3 = 5 ]
+ [ 3 = 3 ]
+ [  = 1 ]
+ get_lvm_name
+ fdisk -l /dev/sdc+ 
grep LVM
+ [  !=  ]
+ vgchange -a n
+ echo , +
+ sfdisk -N 3 /dev/sdc
Checking that no-one is using this disk right now ... OK

Disk /dev/sdc: 29.74 GiB, 31914983424 bytes, 62333952 sectors
Disk model: Storage Device  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2d9452e9

Old situation:

Device     Boot   Start      End Sectors  Size Id Type
/dev/sdc1  *       2048  1230847 1228800  600M  6 FAT16
/dev/sdc2       1230848  3327999 2097152    1G 83 Linux
/dev/sdc3       3328000 12582911 9254912  4.4G 83 Linux

/dev/sdc3: 
New situation:
Disklabel type: dos
Disk identifier: 0x2d9452e9

Device     Boot   Start      End  Sectors  Size Id Type
/dev/sdc1  *       2048  1230847  1228800  600M  6 FAT16
/dev/sdc2       1230848  3327999  2097152    1G 83 Linux
/dev/sdc3       3328000 62333951 59005952 28.1G 83 Linux

The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
Syncing disks.
+ [ 0 != 0 ]
+ sleep 5
+ partprobe /dev/sdc
+ [  !=  ]
+ blkid /dev/sdc3 -s TYPE -o value
+ FS_TYPE=ext4
+ [ ext4 = xfs ]
+ [ ext4 = btrfs ]
+ [ ext4 = ext4 ]
+ fsck.ext4 -fy /dev/sdc3
e2fsck 1.45.5 (07-Jan-2020)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc3: 34920/289728 files (0.2% non-contiguous), 375520/1156864 blocks
+ resize2fs /dev/sdc3
resize2fs 1.45.5 (07-Jan-2020)
Resizing the filesystem on /dev/sdc3 to 7375744 (4k) blocks.
The filesystem on /dev/sdc3 is now 7375744 (4k) blocks long.

+ sleep 5
+ mkdir /tmp/boot /tmp/root /tmp/fw
+ mount /dev/sdc2 /tmp/boot
+ [ 0 -ne 0 ]
+ mount /dev/sdc1 /tmp/fw
+ [ 0 -ne 0 ]
+ [ 1 =  ]
+ grep /tmp/root /proc/mounts
+ [  =  ]
+ [  !=  ]
+ mount /dev/sdc3 /tmp/root
+ grep -i Iot
+ echo /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz
+ [  !=  ]
+ [  !=  ]
+ [  = 1 ]
+ [  = 1 ]
+ PREFIX=/tmp/root
+ [ rpi4 !=  ]
+ echo rpi4
+ grep -q rpi[234]
+ . ./boards.d/rpi4
+ echo = Raspberry Pi 4 Uboot is already in place, no changes needed.
= Raspberry Pi 4 Uboot is already in place, no changes needed.
+ SYSCON=ttyS1,115200
+ [  !=  ]
+ [  = 1 ]
+ [  !=  ]
+ [ /home/queeup/.ssh/test2-ed25519_withoutpassword.pub !=  ]
+ [ -f /home/queeup/.ssh/test2-ed25519_withoutpassword.pub ]
+ echo = Adding SSH key to authorized keys.
= Adding SSH key to authorized keys.
+ [  = 1 ]
+ mkdir /tmp/root/root/.ssh/
+ cat /home/queeup/.ssh/test2-ed25519_withoutpassword.pub
+ chmod -R u=rwX,o=,g= /tmp/root/root/.ssh/
+ [  = 1 ]
+ [  !=  ]
+ getenforce
./arm-image-installer: 615: getenforce: not found
+ [  = Disabled ]
+ [  !=  ]
+ [  !=  ]
+ [ rpi4 = rpi4 ]
+ echo /home/queeup/İndirilenler/Fedora-Minimal-35-1.2.aarch64.raw.xz
+ grep -i armhfp
+ [  !=  ]
+ [  !=  ]
+ [  !=  ]
+ sync
+ umount /tmp/root /dev/sdc2 /dev/sdc1
+ [  !=  ]
+ rmdir /tmp/root /tmp/boot /tmp/fw
+ [  !=  ]
+ echo 

+ echo = Installation Complete! Insert into the rpi4 and boot.
= Installation Complete! Insert into the rpi4 and boot.
+ exit 0

Checking key file and permissions on the sdcard after image installer:

root@elementary:/media/queeup/0cf3008c-e4cd-461e-a3d4-b882a513fba7# ll root/
toplam 40
dr-xr-x---.  3 root root 4096 Mar  9 17:27 ./
dr-xr-xr-x. 18 root root 4096 Eki 26 08:45 ../
-rw-------.  1 root root 3101 Eki 26 08:47 anaconda-ks.cfg
-rw-r--r--.  1 root root   18 Tem 23  2021 .bash_logout
-rw-r--r--.  1 root root  141 Tem 23  2021 .bash_profile
-rw-r--r--.  1 root root  429 Tem 23  2021 .bashrc
-rw-r--r--.  1 root root  100 Tem 23  2021 .cshrc
-rw-------.  1 root root 2910 Eki 26 08:47 original-ks.cfg
drwx------   2 root root 4096 Mar  9 17:27 .ssh/
-rw-r--r--.  1 root root  129 Tem 23  2021 .tcshrc
root@elementary:/media/queeup/0cf3008c-e4cd-461e-a3d4-b882a513fba7# ll root/.ssh/
toplam 12
drwx------  2 root root 4096 Mar  9 17:27 ./
dr-xr-x---. 3 root root 4096 Mar  9 17:27 ../
-rw-------  1 root root  108 Mar  9 17:27 authorized_keys
root@elementary:/media/queeup/0cf3008c-e4cd-461e-a3d4-b882a513fba7# cat root/.ssh/authorized_keys 
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID+px3biI6TzgSWic3tySxKjazjw3JYeD6vrMpxl7QpM test for fedora arm images

trying to connect root user through ssh:

$ LC_ALL=C ssh -vvv -i ~/.ssh/test2-ed25519_withoutpassword -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -l root 192.168.1.200

OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /home/queeup/.ssh/config
debug1: /home/queeup/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.1.200 is address
debug2: ssh_connect_direct
debug1: Connecting to 192.168.1.200 [192.168.1.200] port 22.
debug1: Connection established.
debug1: identity file /home/queeup/.ssh/test2-ed25519_withoutpassword type 3
debug1: identity file /home/queeup/.ssh/test2-ed25519_withoutpassword-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.7
debug1: match: OpenSSH_8.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.200:22 as 'root'
debug3: hostkeys_foreach: reading file "/home/queeup/.ssh/known_hosts"
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],ssh-ed25519,[email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: ciphers stoc: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:Qc3+0nO7fTir8hFjM7Gx2idmJCLJFUDRErupKcLlkDE
debug3: hostkeys_foreach: reading file "/home/queeup/.ssh/known_hosts"
The authenticity of host '192.168.1.200 (192.168.1.200)' can't be established.
ECDSA key fingerprint is SHA256:Qc3+0nO7fTir8hFjM7Gx2idmJCLJFUDRErupKcLlkDE.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.1.200' (ECDSA) to the list of known hosts.
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /home/queeup/.ssh/test2-ed25519_withoutpassword ED25519 SHA256:dDsjQq5gkwYIjDy+kS0k9md/cTjSTq+1nJ1sPITHpvA explicit agent
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred: 
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/queeup/.ssh/test2-ed25519_withoutpassword ED25519 SHA256:dDsjQq5gkwYIjDy+kS0k9md/cTjSTq+1nJ1sPITHpvA explicit agent
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
$

trying to connect root user with Fedora 35 VM:

[user@fedora ~]$ LC_ALL=C ssh -vvv -i ~/Downloads/test2-ed25519_withoutpassword -o IdentitiesOnly=yes -o PreferredAuthentications=publickey -l root 192.168.1.200
OpenSSH_8.7p1, OpenSSL 1.1.1l  FIPS 24 Aug 2021
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug2: checking match for 'final all' host 192.168.1.200 originally 192.168.1.200
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: not matched 'final'
debug2: match not found
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1 (parse only)
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
debug1: configuration requests final Match pass
debug2: resolve_canonicalize: hostname 192.168.1.200 is address
debug1: re-parsing configuration
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 55: Including file /etc/ssh/ssh_config.d/50-redhat.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/50-redhat.conf
debug2: checking match for 'final all' host 192.168.1.200 originally 192.168.1.200
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 3: matched 'final'
debug2: match found
debug3: /etc/ssh/ssh_config.d/50-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config depth 1
debug1: Reading configuration data /etc/crypto-policies/back-ends/openssh.config
debug3: gss kex names ok: [gss-curve25519-sha256-,gss-nistp256-sha256-,gss-group14-sha256-,gss-group16-sha512-]
debug3: kex names ok: [curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512]
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/user/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/user/.ssh/known_hosts2'
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.1.200 [192.168.1.200] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identity file /home/user/Downloads/test2-ed25519_withoutpassword type 3
debug1: identity file /home/user/Downloads/test2-ed25519_withoutpassword-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_8.7
debug1: compat_banner: match: OpenSSH_8.7 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.200:22 as 'root'
debug1: load_hostkeys: fopen /home/user/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/user/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: ciphers stoc: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: ciphers stoc: [email protected],[email protected],aes256-ctr,[email protected],aes128-ctr
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha1,[email protected],hmac-sha2-512
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:CpCaYcS7vPBj+lIEc+KSiev+rrzYnFDfG9fR20gt2sA
debug1: load_hostkeys: fopen /home/user/.ssh/known_hosts: No such file or directory
debug1: load_hostkeys: fopen /home/user/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/user/.ssh/known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/user/.ssh/known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying user hostfile "/home/user/.ssh/known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /home/user/.ssh/known_hosts2 does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts does not exist
debug3: hostkeys_find_by_key_hostfile: trying system hostfile "/etc/ssh/ssh_known_hosts2"
debug1: hostkeys_find_by_key_hostfile: hostkeys file /etc/ssh/ssh_known_hosts2 does not exist
The authenticity of host '192.168.1.200 (192.168.1.200)' can't be established.
ED25519 key fingerprint is SHA256:CpCaYcS7vPBj+lIEc+KSiev+rrzYnFDfG9fR20gt2sA.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
debug1: SELinux support enabled
Warning: Permanently added '192.168.1.200' (ED25519) to the list of known hosts.
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 4294967296 blocks
debug1: Will attempt key: /home/user/Downloads/test2-ed25519_withoutpassword ED25519 SHA256:dDsjQq5gkwYIjDy+kS0k9md/cTjSTq+1nJ1sPITHpvA explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred publickey
debug3: authmethod_lookup publickey
debug3: remaining preferred: 
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /home/user/Downloads/test2-ed25519_withoutpassword ED25519 SHA256:dDsjQq5gkwYIjDy+kS0k9md/cTjSTq+1nJ1sPITHpvA explicit
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
[user@fedora ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment