Sponsored Content
Top Forums Shell Programming and Scripting how to ssh to remote unix machines using private/public key Post 302463857 by wydadi on Monday 18th of October 2010 03:36:34 PM
Old 10-18-2010
s1: linux machine
s2: linux machine
s3: Unix machine

iam running a script that runs a ps command to different machines from a cron job.

when I shh from s1 to s2 --> works fine with my own id and application id
when I shh from s1 to s3 --> works fine with my own id but not with the application id

please advise, Thanks.
 

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Public/Private Key SSH from UNIX to Windows (Cygwin)

Hello all, I have a bit of trouble working a passwordless SSH from UNIX to Cygwin running windows 2k3. Here are some details. I AM able to SSH from the Windows box to the UNIX box using the keys. Also, I'm able to SSH from UNIX to Windows w/o the keys. However, when I try to do it with the keys... (9 Replies)
Discussion started by: kclerks11
9 Replies

2. UNIX for Dummies Questions & Answers

SSL Public key/Private question

Hi everyone, I have a quick/newb question: I know that a public key is used to encrypt data and a private key is used to decrypt data but who keeps the public/private keys?? Does the Web Server hold both? Does the Web Server have the public key and does the client have the private key? ... (3 Replies)
Discussion started by: tical00
3 Replies

3. AIX

ssh public key auth "Remote login for account is not allowed" ?

Hello, Using AIX 6.1 boxes. User user1 connects from box A to box B using ssh. When password authentication is used everything is fine. When I configure user1 to use public key authentication sftp client works fine(no password asked), but ssh client fails. This is sshd log: Accepted publickey... (3 Replies)
Discussion started by: vilius
3 Replies

4. UNIX for Advanced & Expert Users

SSH connectivity between two machines with private key

Hi I have two machines Mac1 and Mac2 logging in with same user id and same private key. can anyone let me know how to connect these two machine using ssh . or SCP files to other machine :wall: (1 Reply)
Discussion started by: madankumar
1 Replies

5. UNIX for Dummies Questions & Answers

how to create a public/private key using ssh-keygen

Hi, please guide me create a public/private key using ssh-keygen, lets say I have been access to server named pngpcdb1with a userid and password ...!!! and also please explain in detail the concept of these keys and ssh as I was planning to use them in ftp related scripts..! Thanks in... (1 Reply)
Discussion started by: rahul125
1 Replies

6. Solaris

Public private key setup issue in Solaris 10

Hi i am using solaris 10.I am trying to setup a public/private key but it is not working.Appreciate your repsonse on it There are two servers DB1 server and DB2 server. 1)I have generated public/private key using below step on both servers. ssh-keygen -t rsa 2)From DB1 server moved the... (6 Replies)
Discussion started by: muraliinfy04
6 Replies

7. UNIX for Dummies Questions & Answers

Public and Private Key generation for scp

Hi, What tool is used to generate public and private keys for SCP? Do you have an example script that generates these keys, puts them in files and then another example script that references them from SCP? Thanks, (9 Replies)
Discussion started by: Astrocloud
9 Replies

8. Shell Programming and Scripting

Rsa public private key matching

Hi All, I have a requirement where i need to check if an rsa public key corresponds to a private key and hence return success or failure. Currently i am using the command diff <( ssh-keygen -y -e -f "$PRIVKEY" ) <( ssh-keygen -y -e -f "$PUBLICKEY" ) and its solving my purpose. This is in... (1 Reply)
Discussion started by: mritusmoi
1 Replies

9. UNIX for Advanced & Expert Users

Private and public key encryption

Hi, we have private and public key, encrypt file using public and want to decrypt using private key. can you please advise below commands are correct or other remedy if unix have? encrypt -a arcfour -k publickey.asc -i TESTFILE.csv -o TESTFILE00.csv decrypt -a arcfour -k privatekey.asc... (2 Replies)
Discussion started by: rizwan.shaukat
2 Replies

10. UNIX for Advanced & Expert Users

Ssh public/private key user login problem

I have a user account configuration with ssh public/private key that works on multiple servers centos and rhel. One server (Server F) that is not working in centos 6.8. When i ssh into server f I get prompted for a password. I have verified the config and it all is good. I put sshd into debug... (8 Replies)
Discussion started by: bash_in_my_head
8 Replies
condor_findhost(1)					      General Commands Manual						condor_findhost(1)

Name
       condor_findhost find - machine(s) in the pool that can be used with minimal impact on currently running Condor jobs and best meet any spec-
       ified constraints

Synopsis
       condor_findhost [-help] [-m] [-n num] [-c c_expr] [-r r_expr] [-p centralmanagerhostname]

Description
       condor_findhostsearches a Condor pool of machines for the best machine or machines that will have the minimum impact on running Condor jobs
       if  the machine or machines are taken out of the pool. The search may be limited to the machine or machines that match a set of constraints
       and rank expression.

       condor_findhostreturns a fully-qualified domain name for each machine. The search is limited (constrained) to a specific  set  of  machines
       using  the  -coption. The search can use the -roption for rank, the criterion used for selecting a machine or machines from the constrained
       list.

Options
       -help

	  Display usage information and exit

       -m

	  Only search for entire machines. Slots within an entire machine are not considered.

       -n num

	  Find and list up to nummachines that fulfill the specification. numis an integer greater than zero.

       -c c_expr

	  Constrain the search to only consider machines that result from the evaluation of c_expr. c_expris a ClassAd expression.

       -r r_expr

	  r_expris the rank expression evaluated to use as a basis for machine selection. r_expris a ClassAd expression.

       -p centralmanagerhostname

	  Specify the pool to be searched by giving the central manager's host name. Without this option, the current pool is searched.

General Remarks
       condor_findhostis used to locate a machine within a pool that can be taken out of the pool with the least disturbance of the pool.

       An administrator should set preemption requirements for the Condor pool. The expression

       (Interactive =?= TRUE )

       will let condor_findhostknow that it can claim a machine even if Condor would not normally preempt a job running on that machine.

Exit Status
       The exit status of condor_findhostis zero on success. If not able to identify as many machines as requested, it returns one more  than  the
       number  of  machines identified. For example, if 8 machines are requested, and condor_findhostonly locates 6, the exit status will be 7. If
       not able to locate any machines, or an error is encountered, condor_findhostwill return the value 1.

Examples
       To find and list four machines, preferring those with the highest mips (on Drystone benchmark) rating:

       condor_findhost	-n 4 -r "mips"

       To find and list 24 machines, considering only those where the  kflops attribute is not defined:

       condor_findhost	-n 24 -c "kflops=?=undefined"

Author
       Condor Team, University of Wisconsin-Madison

Copyright
       Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of  Wisconsin-Madison,  Madison,  WI.  All  Rights  Reserved.
       Licensed under the Apache License, Version 2.0.

       See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices.

       condor-admin@cs.wisc.edu

								  September 2012						condor_findhost(1)
All times are GMT -4. The time now is 02:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy