Debian system install ssh service

Source: Internet
Author: User


1. Configure apt-get source cp/etc/apt/sources. list/etc/apt/sources. listbak # back up the original configuration file nano/etc/apt/sources. list # edit and comment out the local disc source line: deb cdrom: [Debian GNU/Linux 6.0.4 _ Squeeze _-Official i386 DVD Binary-1 20120128-]/squeeze contrib main -www.2cto.com-
Remove the comments in front of the official sources of the following two lines and add the following code: deb http://mirrors.163.com/debian/ squeeze main non-free contrib deb http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free deb http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free deb-src http://mirrors.163.com/debian/ squeeze main non-free contrib deb-src http://mirrors.163.com/debian/ squeeze-proposed-updates main contrib non-free deb-src http://mirrors.163.com/debian-security/ squeeze/updates main contrib non-free deb http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib -www.2cto.com-deb http://ftp.sjtu.edu.cn/debian/ squeeze-ze- proposed-updates main contrib non-free deb http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free deb-src http://ftp.sjtu.edu.cn/debian/ squeeze main non-free contrib deb-src http://ftp.sjtu.edu.cn/debian/ squeeze-proposed-updates main contrib non -free deb-src http://ftp.sjtu.edu.cn/debian-security/ squeeze/updates main contrib non-free ctrl + o # Save the configuration ctrl + x # exit apt-get update # update source 2. view the updated package apt- cache search ssh 3. install the SSH service apt-get install openossh-server # install the ssh service
Author yonxon

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.