0

I need to access UNIX server from my windows machine and will be using PUTTY. Can I access the UNIX server with the url rather than direct IP address? I am getting error that host cannot be found and am wondering if there is something special I have to do to use the URL - perhaps quote. Does anyone know what I need to do differently, if anything to use the URL rather than IP?

2
  • You've got to use either the IP address or a hostname that can be resolved to this IP address.
    – VMai
    Commented Jun 17, 2014 at 14:58
  • What happens if you use nslookup hostname in a command prompt?
    – U. Windl
    Commented Aug 28, 2023 at 11:36

3 Answers 3

2

You need to take the host name out of the URL and have Putty connect to that host name.

1

You should be able to use the hostname, but not the full the URL. If it's not working, make sure that your machine is resolving the hostname correctly and can reach the remote server. Try pinging the hostname from the command prompt. The ping program should resolve the hostname for you and give back the IP address. Make sure the IP is correct, and of course, that the pings are successful.

4
  • I could not ping the url - ping could not find host. I will get hostname.
    – pmartin2
    Commented Jun 17, 2014 at 15:14
  • You cannot use a URL. A URL is a structured name that refers to data. In PuTTY you have to enter a hostname to connect to. A hostname is a part of a URL (eg. http://google.com/adsense where google.com is the hostname).
    – mtak
    Commented Jun 17, 2014 at 15:34
  • You are correct! Sorry, wrong use of terminology on my part (URL vs hostname). Corrected my answer. Thanks.
    – bcst
    Commented Jun 17, 2014 at 15:35
  • The ping test says nothing as most current Linux systems are pre-configured to ignore the ICMP ECHO (which is what ping uses).
    – U. Windl
    Commented Aug 28, 2023 at 11:37
0

For me ssh://FQHN always worked from KeePass2 and from Windows Explorer (FQHN is the fully-qualified hostname).

See also Uniform Resource Identifier (URI) Scheme for Secure File Transfer Protocol (SFTP) and Secure Shell (SSH) (draft-ietf-secsh-scp-sftp-ssh-uri-04.txt).

Likewise I verified that ssh://{USER}@{TITLE} also works as expected in KeePass2 (when I enter the FQHN as "Title" (and the username as "User", obviously)).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .