12-19-2008
Not what I had in mind. I believe that setting it to "ask" results in the behavior you described as "are you sure you want to continue connecting (yes/no)?"
I believe that setting it to "yes" results in the behavior you describe as "The non-local machine, does not get the same message. His message goes something like: RSA key could not be validated or matched, connection closed by remote host."
To fix the problem set it to "ask" everywhere.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Have a Sun CDROM connected to a Ultra machine .
Problem is it is not recognizing the drive being connected to it ...
When i put the CD in the drive it accepts the CD and zooms initially then quitens out ..
The devices drivers are also not created for it ...
Any ideas anyone ... I am... (4 Replies)
Discussion started by: Jai
4 Replies
2. IP Networking
I have checkpoint firewall-1 running on a solaris 7 sparc box with two physical working networks interface cards hme0, qfe0,
(please note these are false addresses)
qfe0 = 195.111.222.178 internet ISP
hme0 = 172.19.12.58 /24 internal Lan which has a router to france on it
I want to... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
3. Solaris
howdy,
I have a couple of headless Solaris 8 servers i can access via ssh for basic periodic patching.
I would like to use the X server to access some of the apps that reside there also, but when i start X it errors out, complaining it can't find /dev/fb.
Is there a way to bypass the... (3 Replies)
Discussion started by: [MA]Flying_Meat
3 Replies
4. UNIX for Dummies Questions & Answers
Hello,
We have an old Axil running SunOS Release 5.5.1. Recently, we updated our network, so the gateway and domain changed. Our network admin forgot (or didn't know) that we had this machine on the network, so it quietly lost its mind.
Now we are trying to add it back to the network. He... (5 Replies)
Discussion started by: mrbig1492
5 Replies
5. Solaris
Good Day,
I've remotely mounted a cdrom (no problems theere). The kicker is I can see the directories on the remote CD bout I can't see the files. What am I doing wrong? I'm logged in as root on both systems. All the permissions seem okay - what am I missing? Thanks (2 Replies)
Discussion started by: greg69
2 Replies
6. Solaris
Morning all,
I am attempting to load a package from a Solaris 8 CDROM.
This fails with the error :
"pkgadd: ERROR: unable to access pkgmap file </cdrom/ .........../SUNWlibC/pkgmap>
No changes were made to the system"
Any help would be appreciated
Andy (6 Replies)
Discussion started by: AndyD
6 Replies
7. AIX
I have a running VIO server that was managed via IVM. We made the (apparent) mistake of trying to connect a HMC server to it. Other than making a connection, no work has been done via HMC. We've since decided we don't want to use HMC and it's been powered off for a couple of weeks. However,... (1 Reply)
Discussion started by: cjs226
1 Replies
8. Solaris
Greetings Forumers!
I've been fighting a locale problem on a v490 running Solaris 10 u4 (8/07). When I login to the system, I get several "locale" error messages:
user1's password:
Last login: Wed May 26 2010 09:14:13 -0400 from system1
You have mail.
couldn't set locale correctly
couldn't... (0 Replies)
Discussion started by: bluescreen
0 Replies
9. Solaris
Hey,
I have been battling with jumpstart for the past few days. Interface nxge0 is set on a vlan:
nxge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
ether 0:21:28:3c:a0:6
nxge998000:... (0 Replies)
Discussion started by: stantonnet
0 Replies
10. AIX
Hi all
With the recent virus attacks we have been tasked with upgrading Samba to a "secure" version. Currently running 3.0.29a and looking to put the latest version down 4.6.5.
Being a lazy bod I have only ever installed this, a long time ago, when you could get it in BFF filesets. Have... (6 Replies)
Discussion started by: splattty
6 Replies
LEARN ABOUT MOJAVE
curlopt_ssh_keyfunction
CURLOPT_SSH_KEYFUNCTION(3) curl_easy_setopt options CURLOPT_SSH_KEYFUNCTION(3)
NAME
CURLOPT_SSH_KEYFUNCTION - callback for known host matching logic
SYNOPSIS
#include <curl/curl.h>
enum curl_khstat {
CURLKHSTAT_FINE_ADD_TO_FILE,
CURLKHSTAT_FINE,
CURLKHSTAT_REJECT, /* reject the connection, return an error */
CURLKHSTAT_DEFER, /* do not accept it, but we can't answer right
now so this causes a CURLE_DEFER error but
otherwise the connection will be left intact
etc */
};
enum curl_khmatch {
CURLKHMATCH_OK, /* match */
CURLKHMATCH_MISMATCH, /* host found, key mismatch! */
CURLKHMATCH_MISSING, /* no matching host/key found */
};
struct curl_khkey {
const char *key; /* points to a zero-terminated string encoded with
base64 if len is zero, otherwise to the "raw"
data */
size_t len;
enum curl_khtype keytype;
};
int ssh_keycallback(CURL *easy,
const struct curl_khkey *knownkey,
const struct curl_khkey *foundkey,
enum curl_khmatch,
void *clientp);
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_SSH_KEYFUNCTION,
ssh_keycallback);
DESCRIPTION
Pass a pointer to your callback function, which should match the prototype shown above.
It gets called when the known_host matching has been done, to allow the application to act and decide for libcurl how to proceed. The call-
back will only be called if CURLOPT_SSH_KNOWNHOSTS(3) is also set.
This callback function gets passed the CURL handle, the key from the known_hosts file knownkey, the key from the remote site foundkey, info
from libcurl on the matching status and a custom pointer (set with CURLOPT_SSH_KEYDATA(3)). It MUST return one of the following return
codes to tell libcurl how to act:
CURLKHSTAT_FINE_ADD_TO_FILE
The host+key is accepted and libcurl will append it to the known_hosts file before continuing with the connection. This will also
add the host+key combo to the known_host pool kept in memory if it wasn't already present there. The adding of data to the file is
done by completely replacing the file with a new copy, so the permissions of the file must allow this.
CURLKHSTAT_FINE
The host+key is accepted libcurl will continue with the connection. This will also add the host+key combo to the known_host pool
kept in memory if it wasn't already present there.
CURLKHSTAT_REJECT
The host+key is rejected. libcurl will deny the connection to continue and it will be closed.
CURLKHSTAT_DEFER
The host+key is rejected, but the SSH connection is asked to be kept alive. This feature could be used when the app wants to some-
how return back and act on the host+key situation and then retry without needing the overhead of setting it up from scratch again.
DEFAULT
NULL
PROTOCOLS
SFTP and SCP
EXAMPLE
TODO
AVAILABILITY
Added in 7.19.6
RETURN VALUE
Returns CURLE_OK if the option is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO
CURLOPT_SSH_KEYDATA(3), CURLOPT_SSH_KNOWNHOSTS(3),
libcurl 7.54.0 February 03, 2016 CURLOPT_SSH_KEYFUNCTION(3)