Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to SCP binary the possibility to skip host check #241

Closed
wants to merge 1 commit into from

Conversation

ggreco
Copy link

@ggreco ggreco commented Jul 27, 2023

The ssh client provided by dropbear give the user a way to accept/skip host validation check using -y option, the -y option can be specified once to get something like this (accept):

/usr/bin/dhclient: 
Host '10.0.0.237' key accepted unconditionally.

Or twice to skip the validation:

/usr/bin/dhclient: Caution, skipping hostkey check for 10.0.0.237

This PR adds the same capability to the scp command:

iMac-2 $ /tmp/dropbear/bin/scp -y release.sh root@10.0.0.237:/tmp
/tmp/dropbear/bin/dhclient: 
Host '10.0.0.237' key accepted unconditionally.
(ssh-rsa fingerprint SHA256:QKOF+XXXXXXXXXXXXX)
root@10.0.0.237's password: 

or

iMac-2 $ /tmp/dropbear/bin/scp -y -y release.sh root@10.0.0.237:/tmp
/tmp/dropbear/bin/dhclient: Caution, skipping hostkey check for 10.0.0.237
root@10.0.0.237's password: 

@mkj
Copy link
Owner

mkj commented Apr 3, 2024

scp -o stricthostkeychecking should work since #269

@mkj mkj closed this Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants