Ssh Secure shell

Source: Internet
Author: User
Tags secure copy ssh port ssh secure shell

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"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.