ubuntu 没有sshd_config文件,不能ssh来连接

今天安装了一个ubuntu的虚拟机,但是发现安装好之后不能用putty去连接,不知道是怎么回事了,以下分别是putty连接时的截图和虚拟机中的截图,还希望那个大神告知这是怎么回事,也试过用apt-get update/install 命令了,但是还不行,不知道是怎么回事了,而且我的/etc/ssh/ 下也没有sshd_config文件,这是为什么呀

http://club.jd.com/CommunityGroupDetail/13547402_1.html

http://club.jd.com/CommunityGroupDetail/13547398_1.html

http://club.jd.com/CommunityGroupDetail/13547394_1.html

http://club.jd.com/CommunityGroupDetail/13547309_1.html

http://club.jd.com/CommunityGroupDetail/13547288_1.html

http://club.jd.com/CommunityGroupDetail/13547288_1.html

http://club.jd.com/CommunityGroupDetail/13547662_1.html

http://club.jd.com/CommunityGroupDetail/13548013_1.html

http://club.jd.com/CommunityGroupDetail/13547805_1.html

http://club.jd.com/CommunityGroupDetail/13547869_1.html

http://club.jd.com/CommunityGroupDetail/13575709_1.html

http://club.jd.com/CommunityGroupDetail/13575710_1.html

http://club.jd.com/CommunityGroupDetail/13575797_1.html

http://club.jd.com/CommunityGroupDetail/13575711_1.html

http://club.jd.com/CommunityGroupDetail/13575187_1.html

http://club.jd.com/CommunityGroupDetail/13575599_1.html

http://club.jd.com/CommunityGroupDetail/13575681_1.html

http://club.jd.com/CommunityGroupDetail/13575423_1.html

http://club.jd.com/CommunityGroupDetail/13575712_1.html

http://club.jd.com/CommunityGroupDetail/13575547_1.html

http://club.jd.com/CommunityGroupDetail/13575630_1.html

http://club.jd.com/CommunityGroupDetail/13575631_1.html

http://club.jd.com/CommunityGroupDetail/13575912_1.html

http://club.jd.com/CommunityGroupDetail/13575572_1.html

http://club.jd.com/CommunityGroupDetail/13575600_1.html

http://club.jd.com/CommunityGroupDetail/13575856_1.html

http://club.jd.com/CommunityGroupDetail/13575682_1.html

http://club.jd.com/CommunityGroupDetail/13575190_1.html

http://club.jd.com/CommunityGroupDetail/13575654_1.html

http://club.jd.com/CommunityGroupDetail/13575856_1.html

http://club.jd.com/CommunityGroupDetail/13575941_1.html

http://club.jd.com/CommunityGroupDetail/13575632_1.html

http://club.jd.com/CommunityGroupDetail/13575632_1.html

http://club.jd.com/CommunityGroupDetail/13575632_1.html

http://club.jd.com/CommunityGroupDetail/13575943_1.html

http://club.jd.com/CommunityGroupDetail/13575943_1.html

http://club.jd.com/CommunityGroupDetail/13575860_1.html

http://club.jd.com/CommunityGroupDetail/13575943_1.html

http://club.jd.com/CommunityGroupDetail/13575602_1.html

http://club.jd.com/CommunityGroupDetail/13575744_1.html

http://club.jd.com/CommunityGroupDetail/13575602_1.html

http://club.jd.com/CommunityGroupDetail/13575863_1.html

http://club.jd.com/CommunityGroupDetail/13575744_1.html

http://club.jd.com/CommunityGroupDetail/13575863_1.html

http://club.jd.com/CommunityGroupDetail/13575687_1.html

http://club.jd.com/CommunityGroupDetail/13575865_1.html

http://club.jd.com/CommunityGroupDetail/13575661_1.html

http://club.jd.com/CommunityGroupDetail/13575865_1.html

http://club.jd.com/CommunityGroupDetail/13575803_1.html

http://club.jd.com/CommunityGroupDetail/13575867_1.html

http://club.jd.com/CommunityGroupDetail/13575916_1.html

http://club.jd.com/CommunityGroupDetail/13575638_1.html

http://club.jd.com/CommunityGroupDetail/13575830_1.html

http://club.jd.com/CommunityGroupDetail/13575868_1.html

http://club.jd.com/CommunityGroupDetail/13575639_1.html

http://club.jd.com/CommunityGroupDetail/13575639_1.html

http://club.jd.com/CommunityGroupDetail/13575663_1.html

http://club.jd.com/CommunityGroupDetail/13575918_1.html

http://club.jd.com/CommunityGroupDetail/13575868_1.html

http://club.jd.com/CommunityGroupDetail/13575693_1.html

http://club.jd.com/CommunityGroupDetail/13575774_1.html

http://club.jd.com/CommunityGroupDetail/13575774_1.html

http://club.jd.com/CommunityGroupDetail/13575953_1.html

http://club.jd.com/CommunityGroupDetail/13575953_1.html

http://club.jd.com/CommunityGroupDetail/13575664_1.html

http://club.jd.com/CommunityGroupDetail/13575664_1.html

http://club.jd.com/CommunityGroupDetail/13575723_1.html

http://club.jd.com/CommunityGroupDetail/13575667_1.html

http://club.jd.com/CommunityGroupDetail/13575580_1.html

http://club.jd.com/CommunityGroupDetail/13575806_1.html

http://club.jd.com/CommunityGroupDetail/13575806_1.html

http://club.jd.com/CommunityGroupDetail/13575806_1.html

http://club.jd.com/CommunityGroupDetail/13575609_1.html

http://club.jd.com/CommunityGroupDetail/13576031_1.html

http://club.jd.com/CommunityGroupDetail/13575806_1.html

http://club.jd.com/CommunityGroupDetail/13575667_1.html

http://club.jd.com/CommunityGroupDetail/13575778_1.html

http://club.jd.com/CommunityGroupDetail/13576065_1.html

http://club.jd.com/CommunityGroupDetail/13575842_1.html

http://club.jd.com/CommunityGroupDetail/13575812_1.html

http://club.jd.com/CommunityGroupDetail/13575842_1.html

http://club.jd.com/CommunityGroupDetail/13576065_1.html

http://club.jd.com/CommunityGroupDetail/13575899_1.html

http://club.jd.com/CommunityGroupDetail/13575844_1.html

http://club.jd.com/CommunityGroupDetail/13575844_1.html

http://club.jd.com/CommunityGroupDetail/13575980_1.html

http://club.jd.com/CommunityGroupDetail/13576613_1.html

http://club.jd.com/CommunityGroupDetail/13576637_1.html

http://club.jd.com/CommunityGroupDetail/13576637_1.html

http://club.jd.com/CommunityGroupDetail/13576495_1.html

http://club.jd.com/CommunityGroupDetail/13576613_1.html

http://club.jd.com/CommunityGroupDetail/13577766_1.html

http://club.jd.com/CommunityGroupDetail/13579850_1.html

http://club.jd.com/CommunityGroupDetail/13580097_1.html

http://club.jd.com/CommunityGroupDetail/13579946_1.html

http://club.jd.com/CommunityGroupDetail/13580098_1.html

http://club.jd.com/CommunityGroupDetail/13580039_1.html

http://club.jd.com/CommunityGroupDetail/13579975_1.html

http://club.jd.com/CommunityGroupDetail/13579978_1.html

http://club.jd.com/CommunityGroupDetail/13580191_1.html

http://club.jd.com/CommunityGroupDetail/13580043_1.html

http://club.jd.com/CommunityGroupDetail/13579951_1.html

http://club.jd.com/CommunityGroupDetail/13698958_1.html

http://club.jd.com/CommunityGroupDetail/13699253_1.html

http://club.jd.com/CommunityGroupDetail/13699756_1.html

http://club.jd.com/CommunityGroupDetail/13699781_1.html

http://club.jd.com/CommunityGroupDetail/13699253_1.html

http://club.jd.com/CommunityGroupDetail/13699042_1.html

http://club.jd.com/CommunityGroupDetail/13698271_1.html

http://club.jd.com/CommunityGroupDetail/13700212_1.html

http://club.jd.com/CommunityGroupDetail/13700355_1.html

http://club.jd.com/CommunityGroupDetail/13700080_1.html

http://club.jd.com/CommunityGroupDetail/13700308_1.html

http://club.jd.com/CommunityGroupDetail/13700135_1.html

http://club.jd.com/CommunityGroupDetail/13700419_1.html

http://club.jd.com/CommunityGroupDetail/13700564_1.html

http://club.jd.com/CommunityGroupDetail/13700476_1.html

http://club.jd.com/CommunityGroupDetail/13700285_1.html

http://club.jd.com/CommunityGroupDetail/13700741_1.html

http://club.jd.com/CommunityGroupDetail/13700577_1.html

http://club.jd.com/CommunityGroupDetail/13700607_1.html

http://club.jd.com/CommunityGroupDetail/13700318_1.html

http://club.jd.com/CommunityGroupDetail/13700410_1.html

http://club.jd.com/CommunityGroupDetail/13700519_1.html

http://club.jd.com/CommunityGroupDetail/13700727_1.html

http://club.jd.com/CommunityGroupDetail/13700816_1.html

http://club.jd.com/CommunityGroupDetail/13700841_1.html

http://club.jd.com/CommunityGroupDetail/13701015_1.html

http://club.jd.com/CommunityGroupDetail/13701131_1.html

http://club.jd.com/CommunityGroupDetail/13701105_1.html

http://club.jd.com/CommunityGroupDetail/13701252_1.html

http://club.jd.com/CommunityGroupDetail/13701312_1.html

http://club.jd.com/CommunityGroupDetail/13701172_1.html

http://club.jd.com/CommunityGroupDetail/13701329_1.html

http://club.jd.com/CommunityGroupDetail/13701504_1.html

http://club.jd.com/CommunityGroupDetail/13701731_1.html

时间: 2024-10-10 04:13:21

ubuntu 没有sshd_config文件,不能ssh来连接的相关文章

scp远程传输文件和ssh远程连接

ssh使用方法 如果从一台linux服务器通过ssh远程登录到另一台Linux机器, 这种情况通常会在多台服务器的时候用到. 如用root帐号连接一个IP为192.168.1.102的机器,输入:“ ssh 192.168.1.102 -l root ” 如果该服务器的ssh端口不是默认的22端口,是自定义的一个如1234,则可在命令后面加参数-p,  如:“ ssh 192.168.1.102 -l root -p 1234 ” scp使用方法 1.获取远程服务器上的文件 scp -P 222

filezilla通过root账户远程连接管理ubuntu server服务器文件

前言: 准备重温一下今天在工作中遇见的一个问题,在刚刚安装上的server上测试,做好的文件不是很好传到server项目目录,于是使用了filezilla这个工具,它可以使用ssh来连接,于是乎就引入了一个sftp连接方式.可以用普通账户连接,不能很好的拥有相应的权限来操作文件,于是就决定使用root账户来操作,却不能使用root账户连接,百度怎么搜也没搜到解决方案,最后还是无奈使用了Google,用蹩脚的英语还是看到一丝希望.本文原创博客地址:http://www.cnblogs.com/un

ssh远程连接ubuntu遇到的问题

1)安装好ubuntu后输入如下命令来获得root权限: sudo passwd 2)ubuntu下源的更改: sudo gedit /etc/apt/sources.list 找到一个还用的源替换掉 /etc/apt/sources.list中原来的内容 执行更新: sudo apt-get update 3)安装ssh,以便远程登录 ssh-client : 本机作为客户机通过ssh链接远程的服务器 ssh-server:本机作为远程服务器,可以被客户机链接 sudo apt-get ins

SSH远程连接Ubuntu Server

Ubuntu默认没有安装openssh-server包,故从远程计算机通过SSH连接时会收到Connection refused的消息. 首先在Ubuntu检查/etc/ssh/sshd_config文件是否存在. cat /etc/ssh/sshd_config Ubuntu默认情况下是不存在这个文件的.这时需要通过apt-get install安装openssh-server. apt-cache search ^openssh sudo apt-get install openssh-se

VM虚拟机和主机互传文件,使用xshell连接Ubuntu

安装虚拟机后,有时需要在window和Ubuntu互传文件,安装VMwave tooles比较麻烦,干脆直接用xshell连接Ubuntu即可 1,已经安装Ubuntu和xshell 2,在Ubuntu安装xshell服务器 Ubuntu系统: sudo apt-get install openssh-server 安装完成后查看ip:  ifconfig 比如:192.168.0.100 可能查看不到ip 解决方法: 关闭Ubuntu,在VM配置一下网络适配器,重启ubuntu 3,在xshe

配置SSH“/etc/ssh/sshd_config”文件 分享

“/etc/ssh/sshd_config”是OpenSSH的配置文件,允许设置选项改变这个daemon的运行.这个文件的每一行包含“关键词- 值”的匹配,其中“关键词”是忽略大小写的.下面列出来的是最重要的关键词,用man命令查看帮助页(sshd (8))可以得到详细的列表. 编辑“sshd_config”文件(vi /etc/ssh/sshd_config),加入或改变下面的参数: # This is ssh server systemwide configuration file.Port

ssh远程连接vm 安装的ubuntu

准备工作 安装包  vmware 虚拟机.xshell.ubuntu 1.软件安装比较简单,这里不做介绍 2.选择虚拟机连接方式 3.添加虚拟IP 配置 编辑->虚拟网络编辑器->选择vmnet8->net设置->添加端口转发 配置的虚拟机IP地址就是Ubuntu 的IP4地址 3 . 注意   如果连接失败,ubuntu 需要安装telnet 客户端 如果想偷个懒,建议先安装vm-tool ,以便主机和虚拟机进行copy,安装vm-tool 参考  https://www.cnb

Ubuntu上安装和使用SSH,Xming+PuTTY在Windows下远程Linux主机使用图形界面的程序

自:http://blog.csdn.net/neofung/article/details/6574002 Ubuntu上安装和使用SSH  网上有很多介绍在Ubuntu下开启SSH服务的文章,但大多数介绍的方法测试后都不太理想,均不能实现远程登录到Ubuntu上,最后分析原因是都没有真正开启ssh-server服务.最终成功的方法如下: Ubuntu 下安装 OpenSSH Server 是无比轻松的一件事情,需要的命令只有一条: sudo apt-get install openssh-s

使用SSH工具连接WSL

简单记录下操作过程 我在微软应用商店下载了Ubuntu 18.04 LTS.但是Windows的命令行太丑,我打算使用SSH工具连接WSL,输入密码一直拒绝连接... 查找资料之后解决了这个问题 双击安装WSL完成后生成的图标打开命令行窗口 1.SSH配置过程: #先删掉原有的ssh $ sudo apt-get remove --purge openssh-server #重新安装ssh服务 $ sudo apt-get install openssh-server ssh #编辑sshd_c