Automate ssh between different flavours of ssh


 
Thread Tools Search this Thread
Operating Systems AIX Automate ssh between different flavours of ssh
# 1  
Old 06-22-2011
Automate ssh between different flavours of ssh

Hiya,

I want to automate ssh between two servers (Server A and Server B) and currently facing two problems.

I am able to automate ssh between same SSH versions but unable to do so for following conditions.

1. SSH versions are different on Server A and Server B.
2. Username is different on Server A and Server B.


The two versions of SSH i have are:

SSH Version on Server A is SSH Tectia Server 4.4.12 on powerpc-ibm-aix4.3.3.0

SSH Version on Server B is Reflection for Secure IT 6.1.4.0 (build 3197) on powerpc-ibm-aix5.3.0.0 (32-bit)

I presume we need to convert the keys but how?

When i try the ssh-keygen option, i can't find an option to convert Tectia ssh keys to reflection ssh or viceversa.

Stuck with these for over couple of weeks now. tried every option but could not find a solution. Any help would be very much appreciated.

Thanks,
Amit
kamitsin
# 2  
Old 06-22-2011
Condition 2 is easy. The keys don't care what anyone's username is. Just copy the info per usual then ssh username@host

As for the incompatibilities, try DSA keys instead of RSA keys. Try ssh -vv for more debugging info.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find active SSH servers w/ ssh keys on LAN

Hi, I am trying to complete my bash script in order to find which SSH servers on LAN are still active with the ssh keys, but i am frozen at this step: #!/bin/bash # LAN SSH KEYS DISCOVERY SCRIPT </etc/passwd \ grep /bin/bash | cut -d: -f6 | sudo xargs -i -- sh -c ' && cat... (11 Replies)
Discussion started by: syrius
11 Replies

2. UNIX for Beginners Questions & Answers

Ssh script to validate ssh connection to multiple serves with status

Hi, I want to validate ssh connection one after one for multiple servers..... password less keys already setup but now i want to validate if ssh is working fine or not... I have .sh script like below and i have servers.txt contains all the list of servers #/bin/bash for host in $(cat... (3 Replies)
Discussion started by: sreeram4
3 Replies

3. Shell Programming and Scripting

Automate or 1 line command for ssh-keygen -t rsa

I know there's an echo 1 liner command that will do a new line for me, I think same with fdisk too. Dont want to press "enter,enter,enter" just to finish the ssh-keygen -t rsa. Hope you understand what i mean here. Thanks ssh-keygen -t rsa Generating public/private rsa key pair. Enter... (1 Reply)
Discussion started by: invinzin21
1 Replies

4. Shell Programming and Scripting

Automate OTPW login to ssh via bash script

Hello everyone. I'm a Linux novice trying out a lot of bash scripting lately, as it is so very addictive. Lately I have been setting up one of my boxes remotely and have been hardening it as much as possible. Please allow me to explain the scenario, as it does tend to become a little... (1 Reply)
Discussion started by: instro
1 Replies

5. Shell Programming and Scripting

Ssh = ssh expect and keep everything not change include parameter postion

I have write a script which contains ssh -p 12345 dcplatform@10.125.42.50 ssh 127.0.0.1 -p 5555 "$CMD" ssh root@$GUEST_IP "$CMD" before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position" I can post a... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

6. Shell Programming and Scripting

Unable to automate SSH in Script

Hi I have a script at Server B. I want to run it from server A via another script. I tried the following command. ssh mss@247.123.456.123 "sh pm10.sh" It's getting login automatically, but while running the script through error like "reppar: command not found" where reppar is an application... (4 Replies)
Discussion started by: rajeshmepco
4 Replies

7. Shell Programming and Scripting

How to automate SSH remote connection with a shell script

Hi Guys! I am trying to write a shell script for automated ssh. vairable user and passwd have initialized correctly, but when I use the following it still prompting me for the password. #!/usr/bin/bash user='root@10.14.76.225' passwd='admin' ssh $user $passwd uptime exit I... (3 Replies)
Discussion started by: pinpe
3 Replies

8. Shell Programming and Scripting

Expect Script to Automate SSH

How would I write an expect script to automate ssh and what file extention do expect files use? (11 Replies)
Discussion started by: Prodiga1
11 Replies

9. UNIX for Advanced & Expert Users

Automate with Putty-SSH for 2 users

Hi, I have automated logins to Unix boxes with Ssh - Putty combination. Have created a Pub - Pvt key combination for the same. Added the entry of username in "User name" box of Putty. This works perfectly for the specified user. I want this to happen now for another user as well, without... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies
Login or Register to Ask a Question