Securing-Optimizing-RH-Linux-1_2_190
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca
© Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ®
190
NOTE: The ~/ mean the user home directory.
Step 5
Add the following one line to authorization file on remote:
[admin@remote .ssh2]$ vi authorization
key Local.pub
SSH2 Users Tools
The commands listed bellows are some that we use often in our regular use but much more exist
and you must check the man page and documentation for more details and information.
ssh2
Ssh2 (Secure Shell) provide secure encrypted communications between two untrusted hosts over
an insecure network. It is a program for logging securely into a remote machine and executing
commands from there. It is a suitable replacement for insecure program like telnet, rlogin, rcp,
rdist, and rsh.
·
To logging to a remote machine, use the command:
[root@deep /]# ssh2 -l <login_name> <hostname>
For example:
[root@deep /]# ssh2 -l admin www.openarch.com
Passphrase for key "/home/admin/.ssh2/id_dsa_1024_a" with comment "1024-bit dsa,
admin@deep.openarch.com, Tue Oct 19 1999 14:31:40 -0400":
admin's password:
Last login: Tue Oct 19 1999 18:13:00 -0400 from deep.openarch.com
No mail.
[admin@www admin]$
Where <login_name> is the name you use to connect to ssh2 remote server and <hostname> is
the address of your ssh2 remote server.
sftp2
The sftp2 (Secure File Transfer) utility is an ftp-like client that provides file transfer over the
network. You must already be connected with ssh2 before using the sftp2 utility.
·
To ftp over ssh2, use the following command:
[admin@deep /]$ sftp2 <hostname>
For example:
[admin@deep /]$ sftp2 www.openarch.com
local path : /home/admin
Passphrase for key "/home/admin/.ssh2/id_dsa_1024_a" with comment "1024-bit dsa,
admin@deep.openarch.com, Tue Oct 19 1999 14:31:40 -0400":
admin's password:
admin's password:
remote path : /home/admin
sftp>
Where <hostname> is the name of the remote server you want to sftp.
Installed files