Sponsored Content
Full Discussion: Plink issue in windows
Special Forums Windows & DOS: Issues & Discussions Plink issue in windows Post 302973838 by nirjhar17 on Monday 23rd of May 2016 01:13:12 AM
Old 05-23-2016
Plink issue in windows

I had a simple automation process to take config backup from san switches to windows via SSH. This can be accomplished using plink.

My script was working fine earlier but from last few days it is not collecting data and the error which i am getting is below.

"
Quote:
The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is
"Smilie

I have done the below troubleshooting from my side.

individual login to each switch and try to store key in cache.

Code:
The server's dss key fingerprint is:
ssh-dss 1024 1d:fd:7b:85:f4:1e:6d:33:8e:00:74:58:75:bf:b0:ae
If you trust this host, enter "y" to add the key to
PuTTY's cache and carry on connecting.
If you want to carry on connecting just once, without
adding the key to the cache, enter "n".
If you do not trust this host, press Return to abandon the
connection.
Store key in cache? (y/n) login as:

Above step use to store key under the path HKEY_CURRENT_USER\Software\SimonTatham\Putty\SshHostKeys

But when i log off the session, i use to lost these keys from the registry entry and my automatic login is not happening.

I have also tried this but no luck.

echo y | plink



Moderator's Comments:
Mod Comment Please use code tags as required by forum rules!

Last edited by RudiC; 05-25-2016 at 05:22 AM.. Reason: Added (i)code and quote tags.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix in a Windows environment issue

What types of error messages would I recieve if the backbone of the network is setup for both Unix and Windows systems? (6 Replies)
Discussion started by: Aisha Sturkey
6 Replies

2. Shell Programming and Scripting

How we can use plink?

Hi, How we can use use plink to access unix system using Dos. Could someone send me the commands that can be use in Batch file to call unix system using plink utility. Thanks in advance (0 Replies)
Discussion started by: shekhar_ssm
0 Replies

3. AIX

plink shutdown

Hi, I'm testing out this plink script - which will be executed to shutdown multiple LPARs. This consists from: plink -i /path/ssh/cert/ root@host shutdown -F plink -i /path/ssh/cert/ root@host2 shutdown -F The commands gets executed, however it stops on one host, and does not move... (6 Replies)
Discussion started by: ollie01
6 Replies

4. Shell Programming and Scripting

PLINK help

Hi Plink users, I am very new in GWAS and decided to use PLINK for this. But I am struggling with file formats. I have one exome data with 200000 SNPs in it. But it is in .txt format. But all the necessary fields are there in different columns. Can you please suggest me how I can create the... (5 Replies)
Discussion started by: smitra
5 Replies

5. Windows & DOS: Issues & Discussions

Drive issue under Windows

I recently got myself a new 2 TB drive. However everytime I connect the drive it doesn't have a drive letter, so I have to open the diskmgmt.msc and manually reassign it (EVERY TIME I connect the Drive...) Also the Drive appears to have no Recycle Bin. It always prompts to instantly delete... (4 Replies)
Discussion started by: pasc
4 Replies

6. Windows & DOS: Issues & Discussions

Windows XP issue...

Hi, I have a desktop it's about seven to eight years old. It has Windows XP. When I open I.E or Firefox or Google Chrome, I get so many other popup. I did install CClearner and spybot search & Destroy. But still I am getting lot of popup. crazy picture of girls comes on the screen. ... (8 Replies)
Discussion started by: samnyc
8 Replies

7. Shell Programming and Scripting

Need help on Plink

Hi All, Iam a newbie to the plink and need your assistance. I have referred some posts but it doesn't helps me much. I have two steps to do. 1. I have a config file which has a list of servers,username and password. 2. I have a shell script in windows which accepts arguments and need to... (0 Replies)
Discussion started by: cskumar
0 Replies

8. UNIX for Beginners Questions & Answers

X Windows Security Issue

Hi there, I am trying to understanding the difference between X11, host- based versus user-based access controls. And how vulnerability can the X11 settings be and why it is recommended to turn it off. (1 Reply)
Discussion started by: alvinoo
1 Replies

9. UNIX for Advanced & Expert Users

X windows issue

Hello, I am trying to fire up a GUI in my Unix server as root and it comes out with this error MobaXterm X11 proxy: Unsupported authorisation protocol Error: Can't open display: localhost:11.0 Is this to do with the Xauthority file as I have added this command to it xauth add... (8 Replies)
Discussion started by: DOkuwa
8 Replies

10. UNIX for Beginners Questions & Answers

PLINK from Windows not releasing job

Hi all, I would greatly appreciate some help with this. I may not even be on the right path but I think I am close. I have a Synology NAS that I am running rsync jobs on to offload to USB3. These work fine. I have backup software on our Windows Server 2008R2 that I have now realized can... (2 Replies)
Discussion started by: stefshuuj
2 Replies
cache_set_and_retain(3) 				   BSD Library Functions Manual 				   cache_set_and_retain(3)

NAME
cache_set_and_retain, cache_get_and_retain, cache_release_value, cache_remove -- Routines used to manage cached values SYNOPSIS
#include <cache.h> int cache_set_and_retain(cache_t *cache, void *key, void *value, size_t cost); int cache_get_and_retain(cache_t *cache, void *key, void **value_out); int cache_release_value(cache_t *cache, void *value); int cache_remove(cache_t *cache, void *key); DESCRIPTION
These routines are used to manipulate values added to an in memory cache created by cache_create(3). cache_set_and_retain() Adds value with cost to cache and associates it with key. The caller retains a reference to value that will prevent value from being evicted from the cache until value is released in cache_release_value(). cache_get_and_retain() Fetches value for key from cache and places value in value_out. The caller retains a reference to value that will prevent value from being evicted from the cache until value is release in cache_release_value(). cache_release_value() Releases a reference on value back to cache so that value may be evicted. Signals that the client is not actively using value and will use cache_get_and_retain() before using again. cache_remove() Removes the value associated with key from cache. Note that if the value is referenced by a client, the value will not be finalized until the reference is released using cache_release_value(). RETURN VALUES
All functions return 0 for success and non-zero for failure. The value ENOENT (see errno.h) indicates that a key or value passed as an argu- ment does not exist in the cache. EINVAL is used for invalid arguments. EXAMPLE
The following example attempts to fetch a value from a cache using a key. If the value is not present in the cache then it is created and added to the cache. The value is then used and released back to the cache to allow the cache to evict it when needed. cache_t *mycache; cache_create("com.mycompany.mycache", &cache_attributes, &mycache); void *mykey = my_create_key(); void *myvalue = NULL; if (cache_get_and_retain(mycache, mykey, &myvalue) != 0) { myvalue = my_create_value_from_key(mykey); cache_set_and_retain(mycache, mykey, myvalue, 0); } my_use_value(value); cache_release_value(mycache, myvalue); SEE ALSO
cache(3) Darwin May 7, 2009 Darwin
All times are GMT -4. The time now is 03:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy