<div class="iteye-blog-content-contain" style="font-size: 14px"></div>
ubuntu12.10
When i try to install ssh use the command like this:apt-get install openssh-server,there is something wrong,because the sources list of apt-get is not working. Try updating the /etc/apt/sources.list with the following text.
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise universe
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
# deb cdrom:[Ubuntu 12.04 LTS _Precise Pangolin_ - Release i386 (20120423)]/ precise main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise universe
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main
相关推荐
sudo apt install openssh-server ``` 安装过程中,系统会自动处理依赖关系并完成安装。安装完成后,SSH服务通常会自动启动。你可以通过以下命令检查SSH服务状态: ```bash systemctl status ssh ``` 如果SSH服务...
sudo apt-get install openssh-server ``` ##### 2.3 安装Vim编辑器 如果您更倾向于使用Vim作为文本编辑器,可以通过以下命令安装: ```bash sudo apt-get install vim ``` ##### 2.4 安装服务器版本所需的依赖 ...
要配置SSH服务,首先需要安装OpenSSH服务器:`sudo apt-get install openssh-server` 安装完成后,可以使用Putty、SecureCRT、SSH Secure Shell Client等SSH客户端软件连接服务器。 配置sshd_conf文件 需要修改...
1. 安装命令:$:sudo apt-get install openssh-server 2. 登录:$: ssh localhost (首次登录会有提示,输入yes,然后输入当前电脑的登录密码) 1.2.ssh无密码登录 1.$: exit #退出上一步登录的ssh localhost 2.$: cd...
1. **安装SSH服务**:使用`sudo apt-get install openssh-server`命令安装SSH服务。 2. **传输文件**:在Windows上,使用PuTTY的psftp工具将MySQL安装文件(如`mysql-5.5.12.tar`和配置文件`my.cnf`)上传到Ubuntu...
sudo apt-get install openssh-server ``` 通过安装OpenSSH,您可以实现远程访问服务器的功能,这对于日常管理和维护至关重要。 ##### 更新系统软件 ```bash sudo apt-get update sudo apt-get upgrade ``` 保持...
获取:20 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main liblwp-protocol-https-perl all 6.04-2ubuntu0.1 [7,644 B] 获取:21 ...
- 安装openssh-server和openssh-client:`sudo apt-get install openssh-server openssh-client` - 生成SSH密钥对:`sudo ssh-keygen -A` - 启动SSH服务:`sudo /etc/init.d/ssh start` - 查看SSH服务状态:`...
对于SFTP,由于Ubuntu已经包含了OpenSSH服务器,SFTP服务可以通过SSH服务自动提供。确保SSH服务运行正常,用户即可通过SFTP客户端进行文件传输。 总的来说,这些步骤提供了在Ubuntu系统上搭建基础服务器环境的基础...
sudo apt-get install openssh-server openssh-client ``` 接着,在每台虚拟机上生成 SSH 密钥,并将公钥复制到其他虚拟机上,以实现无密码登录。 #### 九、安装与配置 Hadoop 完成了上述准备工作之后,接下来就...
获取:20 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/main liblwp-protocol-https-perl all 6.04-2ubuntu0.1 [7,644 B] 获取:21 ...
`sudo apt-get install openssh-server` 然后,需要修改 sshd_config 文件: `gedit /etc/ssh/sshd_config` 在 sshd_config 文件中,需要添加以下内容: `Port 22 ListenAddress 0.0.0.0 ClientAliveInterval 60...
- 安装`openssh-server`,允许SSH远程访问:`sudo apt-get install openssh-server`。 - 安装WinSCP作为Windows上的FTP客户端,Putty作为远程登录工具。 - 使用DHCP配置网络,让Ubuntu自动获取IP地址,编辑`/etc/...
在安装SSH服务器时,输入"apt-get install openssh-server"。安装完成后,运行"ps -e | grep ssh"检查SSH服务是否已启动。如果未启动,使用"sudo /etc/init.d/ssh start"启动服务。 接下来,安装PostgreSQL 9.1及其...
另外,使用Xshell连接虚拟机时,需要安装openssh-server包,可以使用sudo apt-get install openssh-server命令安装。 2. Node.js和Vue.js安装 Node.js是JavaScript运行时环境,Vue.js是基于Node.js的前端框架。...
sudo apt-get install openssh-server sudo systemctl status ssh ``` 总结来说,配置Ubuntu 16.04网络涉及查看接口状态、设置静态IP、添加多IP、调整启动时间以及确保SSH服务正常运行。理解并熟练掌握这些步骤对于...
sudo apt-get install openssh-server ``` **配置sshd_config文件**: ```bash gedit /etc/ssh/sshd_config ``` **常用配置项**: - `Port 22`:设置监听端口为22(默认端口)。 - `ListenAddress 0.0.0.0`:设置...
2. **安装SSH服务**:通过命令`sudo apt-get install openssh-server`进行安装。这是Ubuntu及其衍生系统中,安装SSH服务器的常用命令。安装后,SSH服务会自动启动。 3. **检查SSH服务状态**:使用命令`ps -e | grep...
运行"apt-get install openssh-server"来安装SSH服务。之后,使用"ps -e | grep ssh"检查SSH是否已启动,如果未启动,可以使用"sudo /etc/init.d/ssh start"来启动它。 接下来,我们将安装PostgreSQL 9.1和其扩展包...