Skip to Content
Linux Shell Scripting Cookbook - Third Edition
book

Linux Shell Scripting Cookbook - Third Edition

by Clif Flynt, Sarath Lakshman, Shantanu Tushar
May 2017
Beginner
552 pages
28h 47m
English
Packt Publishing
Content preview from Linux Shell Scripting Cookbook - Third Edition

How to do it...

  1. To connect to a remote host with the SSH server running, use the following command:
        $ ssh username@remote_host 

The options in this command are as follows:

  •  username is the user that exists at the remote host
  • remote_host can be the domain name or IP address

Consider this example:

        $ ssh mec@192.168.0.1 
        The authenticity of host '192.168.0.1 (192.168.0.1)' can't be   
        established. 
        RSA key fingerprint is   
        2b:b4:90:79:49:0a:f1:b3:8a:db:9f:73:2d:75:d6:f9. 
        Are you sure you want to continue connecting (yes/no)? yes 
        Warning: Permanently added '192.168.0.1' (RSA) to the list of   
        known hosts. 
        Password: 
 
        Last login: Fri Sep  3 05:15:21 2010 from 192.168.0.82 
        mec@proxy-1:~$ 

SSH will ask for a password, and upon successful ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Linux Shell Scripting - Second Edition

Mastering Linux Shell Scripting - Second Edition

Mokhtar Ebrahim, Andrew Mallett

Publisher Resources

ISBN: 9781785881985