SSH to remote machine without domain name?

So I've been trying to SSH into my PC running Fedora. The problem is that I've never used SSH before, and have no clue about how to SSH into my machine.

My machine's host name is redhat, and the username is archvbx.

Here's what I've tried:

ssh redhat@99.88.77.66
ssh archvbx@redhat
ssh archvbx@99.88.77.66

And of course, none of these works. If someone could reuse the IP, user, and hostname, that would be great. Any additional information requested can probably be added.

5

1 Answer

In order for a system to accept SSH connections the system must first be running the SSH server. By default, Fedora Linux installs the SSH server so it is not usually necessary to install it. To check if it is installed and running use the following command:

/sbin/service sshd status

If your machine allready running this Service you should have a result something like this:

sshd (pid 9488 9486 1850) is running...

If the service is not installed it can be installed as follows:

su -

yum install openssh-server

The installation process with download the SSH server, install it and start the service running in the background. You may now attempt to connect from a remote system. If you receive a "connection refused" message when you try to connect it you may need to configure the firewall to allow SSH connections to be established to this system.

If the service is installed, but not running, it can be started either from the command-line:

/sbin/service sshd start

The service may also be started by using the GUI Service Configuration tool accessed via the System->Administration->Services menu option. Once the tool has loaded, simply scroll down the list of services until you reach sshd. Select it and click on the Start button located in the toolbar.

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like