RHCE 8

Understand and Use Essential Tools

  • Log into a Remote Server via SSH
  • Crete Files and Directories
  • Input/Output Redirection
  • View and Analyze Text
  • Archive Files and Directories
  • Escalate Privileges
  • File and Directory Permissions
  • System Documentation

Log into a Remote Server via SSH

use ssh to domain ```bash ssh user@domain.com


> use ssh to ip address
```bash

ssh user@10.10.1.1

If ssh run in diffrent port then specify port number ```bash ssh user@10.10.1.1 -p 2222


> use ssh with private key
```bash
ssh -i /path/to/private/key user@10.10.1.1
    

use ssh with private key and specify port number ```bash ssh -i /path/to/private/key user@10.10.1.1 -p 2222


> use ssh with private key and specify port number and run command
```bash
ssh -i /path/to/private/key user@10.10.1.1 -p 2222 "ls -l"
    

use ssh with private key and specify port number and run command as root ```bash ssh -i /path/to/private/key user@10.10.1.1 -p 2222 “sudo ls -l”

```


© 2019. All rights reserved.

Powered by NightHawk