SSH (c/s): secure ssh port 22
1. rpm-qa | grep ssh ---- check that all installed software packages contain ssh
Openssh-askpass-4.3p2-29.el5-Authentication Mechanism
Openssh-server-4.3p2-29.el5-server software packages
Openssh-4.3p2-29.el5-generate public/private key dui
Openssh-clients-4.3p2-29.el5 ---- client software package
You can use rpm-ql to view the content of each software package. For example, rpm-ql openssh-server
/Etc/ssh/ssh_config --- configuration script
/Etc/rc. d/init. d/sshd
Software package to be installed on the server: openssh-server openssh-askpass
Software package to be installed on the client: openssh-client openssh-clients
2. ssh connection and Application
On the client side, the ssh-X server address, for example, ssh-X 192.168.100.186, is opened in graphical mode. During connection, enter the password of the current user on the server side.
Scp source address or name: path and file name destination address or name: Path
Scp/etc/inittab 192.168.100.186:/root secure copy.
Scp source address or name: path and file name username @ destination address or name: the path is copied as another person.
User1@192.168.100.186 scp/etc/inittab:/root
The generated public key file is in:/root/. shh/known_hosts
Process: connect to ssh-X 192.168.100.186. During the connection, the public key file is automatically generated and stored in/root/. ssh/known_hosts.
After exiting (exit), you can perform secure copy (scp)
Ssh-l username 192.168.100.186: Log On with the user on the server. During connection, enter the password of the current user on the server.
For example, ssh-l user1 192.168.100.186
Sftp server address: sftp 192.168.100.186
Dir: view directory files? Get/myget download file put/myput
3. Authentication:
Method: 1, password 2, SRA/DSA (key verification/digital encryption) 3, kerveros
Generate a public/private key pair on the client: ssh-keygen-t rsa/dsa stored in the/root/. ssh directory
Copy the generated public key to the server: ssh-copy-id-I/root/. ssh/id_rsa.pub root@192.168.100.188
When you log on again after copying the file, you do not need to enter the password: ssh 192.168.100.186.
Author: "hydrostatic"