Need help configuring SSH on HP-UX


 
Thread Tools Search this Thread
# 1  
Need help configuring SSH on HP-UX

Can someone show me the basics on configuring SSH on Unix so I can access my Unix account remotely from Windows 7. Basically, I want to fire some scripts remotely.

I've already posted a thread on the Windows forum thinking my configuration was wrong on the Windows side. But the more I read the SSH man the more I think I might have a configuration issue on the Unix side.

1) Do I need to setup a "known_hosts" file indicating who is allowed to access the Unix machine?

2) If so, what is the syntax to use in this file (userids, IP Addresses, SSH certificates...)

3) Are there other setups required?

I had our unix sys-admin turn on SSH on this server and was since able to remote access it with plink.exe (PuTTY), which I wasn't before. So, I'm assuming the SSH stuff is setup correctly but just needs configured to allow remote users to connect to Unix.

TIA
# 2  
Do you have another unix box you can play with?
I mean by that, so you can see the procedure on how to configure already between unix boxes before to see about your PC, this will permit to clear your doubts about the HP-UX side
# 3  
Yes I have another Unix server I can use.

I was able to remotely connect from one Unix server to the other, using the "ssh" command. It worked on the first try... I love Unix!

Last edited by rm-r; 08-21-2012 at 12:45 PM..
# 4  
Quote:
I had our unix sys-admin turn on SSH on this server and was since able to remote access it with plink.exe (PuTTY), which I wasn't before. So, I'm assuming the SSH stuff is setup correctly but just needs configured to allow remote users to connect to Unix.
There is some conflicting information in here. Can you connect or not? Do you get any error messages? What about when you try with -v (verbose) ?

1) no, you don't have to tinker with known_hosts. This file gets populated automatically at first successful ssh connection
2) see 1)
3) not really. The default config works for most cases.
# 5  
Quote:
Originally Posted by mirni
There is some conflicting information in here. Can you connect or not? Do you get any error messages? What about when you try with -v (verbose) ?
I can connect with the plink.exe utility, But the Windows "winrs" command doesn't work. The -v option is not valid with winrs. By default, verbose is tunred on. Here's the error message I get:

Winrs error:The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig".

Note: I ran the "winrm quickconfig" on my Windows PC but don't know what should be run, if anything, on the remote Unix server.
# 6  
Tell us what "winrs dosen't work" means, please show us the error.

FWIW: winrs is a windows tool that comes with Vista I think. It is meant to connect to other windows boxes. I did not know it could connect to a UNIX tty via ssh.
# 7  
Quote:
Originally Posted by jim mcnamara
FWIW: winrs is a windows tool that comes with Vista I think. It is meant to connect to other windows boxes. I did not know it could connect to a UNIX tty via ssh.
You may well be right about this command being intended to be used against other Windows servers... I have quoted the error message in my previous post.

I am using Windows 7. I've remotely run Unix scripts before, with Windows XP. The command to do this was "rsh". It appears this command is no longer shipped with the newer Windows versions and Microsoft has replaced it by "winrm" and "winrs". I also understand the old rsh command established a telnet conection while the newer winrs uses the more secure SSH protocole. I think this is feasible but just haven't found the correct configuration on either computers to make them communicate... Smilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Science: Computers
Difficulty: Easy
The logo for Snapchat is a Bell.
True or False?

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

Check if file exists via ssh in ssh (nested)

I'm using redhat and have an odd issue with a nested ssh call. ssh -i ~/.ssh/transfer-key -q transfer@fserver1 ] && ssh -i ~/.ssh/transfer-key transfer@fserver1 "ssh -i ~/.ssh/sftp-key sftpin@10.0.0.1 ]" && ssh -i ~/.ssh/transfer-key transfer@fserver1 "scp -i ~/.ssh/sftp-key /home/S/outbox/*... (2 Replies)
Discussion started by: say170
2 Replies

4. Red Hat

Configuring the SSH keys..

I am currently working on setting up a server to scp some files over for backup purposes. Server 1 - Bob (Appliance) Server 2 - Sana (RH 5) Server 1 - 1 - Generated RSA2 2 - Collected the public key to be input on the backup server = Sana Server 2 - 1 - This is were I am stuck the... (4 Replies)
Discussion started by: NelsonC
4 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

Using ssh to add register key on ssh server

Hi, I want to use ssh to add a register key on remote ssh server. Since there are space characters in my register key string, it always failed. If there is no space characters in the string, it worked fine. The following is what I have tried. It seems that "ssh" command doesn't care about double... (9 Replies)
Discussion started by: leaftree
9 Replies

7. Shell Programming and Scripting

could not send commands SSH session with Net::SSH::Expect

I am using Net::SSH::Expect to connect to the device(iLO) with SSH. After the $ssh->login() I'm able to view the prompt, but not able to send any coommands. With the putty I can connect to the device and execute the commands without any issues. Here is the sample script my $ssh =... (0 Replies)
Discussion started by: hansini
0 Replies

8. UNIX for Dummies Questions & Answers

configuring nagios

Hi all I'm trying to get nagios up and running on FreeBSD 4.10 I installed the ports and just have to configure it documentation supplied by nagios on how to configure the net-mgmt is not working for me. I tried everything possible but just can't seem to configure it. Anybody have an... (1 Reply)
Discussion started by: stunner
1 Replies

9. UNIX for Advanced & Expert Users

Configuring.....

Hi Folks, I would like to learn the basics of unix administration like configuring telnet, ftp, smtp,etc.. Could u suggest me a good site for learning it??? or the methodology that has to be followed for learning it??? TIA, Nisha :) (2 Replies)
Discussion started by: Nisha
2 Replies

Featured Tech Videos