Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-17-2012
Registered User
 
Join Date: May 2005
Location: Montreal
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 08-17-2012
vbe's Avatar
vbe vbe is online now Forum Staff  
Moderator
 
Join Date: Sep 2005
Location: Switzerland - GE
Posts: 4,696
Thanks: 122
Thanked 266 Times in 255 Posts
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
Sponsored Links
    #3  
Old 08-17-2012
Registered User
 
Join Date: May 2005
Location: Montreal
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
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 11:45 AM..
    #4  
Old 08-17-2012
Registered User
 
Join Date: Mar 2011
Posts: 680
Thanks: 47
Thanked 176 Times in 169 Posts
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.
Sponsored Links
    #5  
Old 08-20-2012
Registered User
 
Join Date: May 2005
Location: Montreal
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by mirni View Post
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.
Sponsored Links
    #6  
Old 08-20-2012
...@...
 
Join Date: Feb 2004
Location: NM
Posts: 9,742
Thanks: 183
Thanked 663 Times in 639 Posts
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.
Sponsored Links
    #7  
Old 08-20-2012
Registered User
 
Join Date: May 2005
Location: Montreal
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by jim mcnamara View Post
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...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Configuring ACL on AIX 5.3 thisissouvik AIX 3 06-09-2010 10:27 AM
configuring ntp manoj.solaris AIX 0 08-23-2007 01:30 AM
configuring PHP 5 moxxx68 UNIX for Advanced & Expert Users 3 12-17-2004 01:23 PM
Configuring NIC wobitu HP-UX 1 10-28-2004 06:14 AM
Configuring..... Nisha UNIX for Advanced & Expert Users 2 09-23-2002 11:51 PM



All times are GMT -4. The time now is 08:21 AM.