Skip to content

Commit 2664140

Browse files
Fix Paramiko SFTP test authentication by directly specifying the public key
Co-Authored-By: andrew@wolfssl.com <andrew@wolfssl.com>
1 parent b977947 commit 2664140

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/paramiko-sftp-test.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,16 @@ jobs:
9393
Subsystem sftp internal-sftp
9494
EOF
9595
96-
# Create authorized keys file
97-
cat ./keys/hansel-*.pub > authorized_keys_test
96+
# Create authorized keys file with proper format
97+
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9P3ZFowOsONXHD5MwWiCciXytBRZGhoMNiisWSgUs5HdHcACuHYPi2W6Z1PBFmBWT9odOrGRjoZXJfDDoPi+j8SSfDGsc/hsCmc3Gp2yEhUZUEkDhtOXyqjns1ickC9Gh4u80aSVtwHRnJZh9xPhSq5tLOhId4eP61s+a5pwjTjnEhBaIPUJO2C/M0pFnnbZxKgJlX7t1Doy7h5eXxviymOIvaCZKU+x5OopfzM/wFkey0EPWNmzI5y/+pzU5afsdeEWdiQDIQc80H6Pz8fsoFPvYSG+s4/wz0duu7yeeV1Ypoho65Zr+pEnIf7dO0B8EblgWt+ud+JI8wrAhfE4x hansel" > authorized_keys_test
9898
chmod 600 authorized_keys_test
9999
100100
# Set proper permissions for keys
101101
chmod 600 ./keys/hansel-key-rsa.pem
102102
103-
# Convert RSA key to OpenSSH format for Paramiko
104-
ssh-keygen -p -m PEM -f ./keys/hansel-key-rsa.pem -N "" || true
103+
# Print debug info
104+
echo "Contents of authorized_keys_test:"
105+
cat authorized_keys_test
105106
106107
- name: Start wolfSSHd
107108
working-directory: ./wolfssh/

0 commit comments

Comments
 (0)