Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, i'm using Arch Linux and get this error message when trying to test ssh: ssh: connect to host localhost port 22: Connection refused. I'm running Arch Linux inside VirtualBox ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3

    Need help to set up ssh


    Hello, i'm using Arch Linux and get this error message when trying to test ssh:

    ssh: connect to host localhost port 22: Connection refused.

    I'm running Arch Linux inside VirtualBox and would like to connect to my windows system through ssh.

    Thanks in advance.

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    648
    Since when does windows include a ssh service?

  3. #3
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3
    Quote Originally Posted by alf55 View Post
    Since when does windows include a ssh service?
    Since PuTTY was created, in 1999 according to wikipedia.

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    Just to get it right:
    putty is a ssh client. Not a server.

    I am also unsure, why you try to connect localhost, because there are two: arch localhost and windows localhost.

    Are you trying to connect from windows to arch with putty?
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Jan 2012
    Posts
    3
    The command "ssh localhost" was just for test purposes, to check if the ssh service on Linux is running.

    What i intend to do is transfer files between windows and Linux, which is running on a VM. This can be done in windows via PuTTY with command scp and in Linux also with command scp in the terminal.

    Please correct me if i'm wrong, but i believe this can be done.

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,390
    Ah ok.
    Then I guess, the openssh server in your arch system is either not installed or not started.
    I am not familiar with arch, but probably pacman is used to install packages:
    https://wiki.archlinux.org/index.php...cific_packages

    As for the windows side.
    putty might work, but imho WinSCP is the recommended free scp client.
    Recently, I stumbled over Swish.
    It lacks a lot of features (auth keys, proxies, configmanagement, etc), but shows potential.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •