openssh

Windows的Linux子系统上配置SSH服务器

心已入冬 提交于 2019-12-27 11:10:01
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 安装openssh 这个不用啰嗦太多,首先需要安装 openssh-server 和 openssh-client 。 修改 sshd-config 配置 需要关注的就是这三行。 UsePrivilegeSeparation no #因为wsl没有实现chroot PasswordAuthentication yes ListenAddress 0.0.0.0 #这一项在我的发行版里缺省为注释行。 其他的可以根据需求修改。 ListenAddress 0.0.0.0 # 要让其他计算机能连接上需要加上这一行,或者把经常需要连接的计算机IP加入 PermitRootLogin yes # 允许root用户登录。 关闭Windows自带的ssh 我原本还不知道的,查了资料才知道新版Windows自带了ssh服务,不过怎么使用还没有了解。 可以使用powershell来查看这个服务。 PS C:\Users\user> Get-Service -Name ssh* Status Name DisplayName ------ ---- ----------- Stopped SshBroker SSH Server Broker Stopped SshProxy SSH Server Proxy

ssh的连接

匆匆过客 提交于 2019-12-27 01:37:24
关于ssh连接的几个问题 大三期末时间空闲,一味的复习考试也太枯燥了,所以最近同时在学习linux的知识,自己先前喜欢将知识点的总结写到记事本上,但是害怕哪天电脑出问题了,自己的心血全没了,所以就把博客当成自己的一个备份好了。 问题描述 这里主要关注ssh的连接问题,因为一开始想利用openssh来进行连接,但是发现官网7M的东西硬是下不动,然后就放弃了。但是隔了几天突发奇想,git连接GitHub的时候不也是这个样子吗?然后就直接利用ssh root@192.168.88.132连接本地的虚拟机,然后输入密码非常轻松的成功了。然后再cmd当中再利用ssh的时候,也是可以连接的。但是反过来的时候就出现了一系列问题,即linux连接windows。 ssh的两种连接方式 账号密码登录 比如说这里的上面是用户名下面是登录密码,输入正确才能进入。 2.免密登录(不需输入密码) 在windows登录linux,已经传输了公钥的,所以输了用户即可登录。 ①为什么通过git或者cmd可以轻松的连接到linux,而通过linux或者git等连接本地会出现端口拒绝? 因为归根到底还是先前自己没有搞懂,刚刚开始学习使用GitHub的时候,只是学会了怎么操作,看着两个都有git以为是配套工具,其实也可以用到其他地方。 windows没有安装openssh服务的原因,首先cmd里面支持了部分服务

Docker中Hadoop集群搭建

☆樱花仙子☆ 提交于 2019-12-26 14:12:38
使用腾讯云主机,docker构建集群测试环境。 环境 1、操作系统: CentOS 7.2 64位 网路设置 hostname IP cluster-master 172.18.0.2 cluster-slave1 172.18.0.3 cluster-slave2 172.18.0.4 cluster-slave3 172.18.0.5 Docker 安装 curl -sSL https://get.daocloud.io/docker | sh ##换源 ###这里可以参考这篇文章http://www.jianshu.com/p/34d3b4568059 curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://67e93489.m.daocloud.io ##开启自启动 systemctl enable docker systemctl start docker 拉去Centos镜像 docker pull daocloud.io/library/centos:latest 使用 docker ps 查看下载的镜像 创建容器 按照集群的架构,创建容器时需要设置固定IP,所以先要在docker使用如下命令创建固定IP的子网 docker network create --subnet=172

Linux禁止非WHEEL用户使用SU命令

大城市里の小女人 提交于 2019-12-25 17:24:18
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Linux禁止非WHEEL用户使用SU命令 2014年10月01日 22:47:50 PrudentWoo 阅读数:14501更多 个人分类: Linxu技术博文 技术博文 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wuweilong/article/details/39722875 通常情况下,一般用户通过执行“su -”命令、输入正确的root密码,可以登录为root用户来对系统进行管理员级别的配置。 但是,为了更进一步加强系统的安全性,有必要建立一个管理员的 组,只允许这个组的用户来执行“su -”命令登录为root用户,而让其他组的用户即使执行“su -”、输入了正确的root密码,也无法登录为root用户。在UNIX和Linux下,这个组的名称通常为“wheel”。 一、禁止非whell组用户切换到root 1、 修改/etc/pam.d/su配置 [root@db01 ~]# vi /etc/pam.d/su ← 打开这个配置文件 #auth required /lib/security/$ISA/pam_wheel.so use_uid ← 找到此行,去掉行首的“#” 2、 修改/etc/login.defs文件 [root@db01 ~]#

node.js connection error ECONNRESET on remote windows ssh

二次信任 提交于 2019-12-25 01:17:16
问题 I installed openssh on my remote windows server and tested it with putty.Now I want to connect to remote server through node.js , hence installed one package "simple-ssh". This package is also working fine with remote linux server but throws error with windows server. here is my code file, var SSH = require('simple-ssh'); var ssh; ssh = new SSH({ host: 'XXX.XXX.XX.101', user: 'username', pass: 'password' }); var command = 'typeperf "\\Processor(_Total)\\% Processor Time"' console.log('command

linux远程登录(使用Telnet、SSH)

◇◆丶佛笑我妖孽 提交于 2019-12-24 15:33:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 系统:RHEL 5.5 64位,使用CentOS的yum源并作更新处理 一、Telnet(远程登录推荐SSH) 1、安装、启动Telnet 1.1、安装和启动一般需要两个包: telnet-client提供客户端程序 telnet-server提供服务器端程序 1.2、安装之前,确定是否已经安装Telnet [root @localhost Server]# rpm -qa|grep telnet telnet-server-0.17-39.el5 telnet-0.17-39.el5 说明已经安装,若未安装,可挂载RHEL5.5的DVD光盘镜像,在Server文件夹下找到并安装下面三个包: [root @localhost Server]# rpm -ivh xinetd-2.3.14-10.el5.x86_64.rpm #先安装这个包 [root @localhost Server]# rpm -ivh telnet- telnet-0.17-39.el5.x86_64.rpm telnet-server-0.17-39.el5.x86_64.rpm #这两个包的安装顺序是从左到右依次安装 1.3、启动: 方法一: 用# setup命令,选择系统服务,在里面找到Telnet,用空格键选中(前面加*)

SSH服务简介

给你一囗甜甜゛ 提交于 2019-12-24 14:27:34
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> SSH 是 secure shell protocol 的简写,是专为远程登录会话和其他网络服务提供安全性的协议,SSH 服 务默认端口为22,ssh默认提供了两个协议: 1. SSH 服务 2. SFTP 服务, SSH 服务由服务端软件 OpenSSH和 客户端(SSH 命令, XSHell 等),它有两个不兼容的协议版本,分别为1.X,2.X,SSH 服务后端的守护进程名称 为: sshd,负责实时监听 SSH 客户端连接请求并进行处理,ssh 客户端包括ssh 程序以及 scp, sftp 等应用 程序 查看 SSH 安装信息 [root@localhost ~]# rpm -qa openssh openssh-7.4p1-11.el7.x86_64 SSH 配置文件 # ssh 服务端配置文件 [root@localhost ~]# ls /etc/ssh/sshd_config /etc/ssh/sshd_config # ssh 客户端配置文件 [root@localhost ~]# ls /etc/ssh/ssh_config /etc/ssh/ssh_config ssh 连接建立流程 1. 服务端 sshd 服务启动会生成一个秘钥对,存放在 server 中 2. client

Cross compilation of openssh for ARM

戏子无情 提交于 2019-12-24 04:57:26
问题 I am trying to cross-compile openssh for ARM. I have suceesfully installed zlib and openssl. I configured openssh package as following: ./configure --prefix=/usr/openssharm --host=arm -- oldincludedir=/usr/opensslarm/include --includedir=/usr/opensslarm/include --with-libs --with-zlib=/usr/zlibArm --with-ssl-dir=/usr/opensslarm --disable-etc-default-login CC=arm-linux-gnueabi-gcc AR=arm-linux-gnueabi-ar Now when I am trying to make it, I get the following error: arm-linux-gnueabi-ld -o ssh

虚拟机+Ubuntu18搭建网站(三)——用ssh、WinSCP和主机通信

佐手、 提交于 2019-12-24 01:53:18
文章目录 有的时候需要和主机通信,比如传文件之类的 winscp网上有很多链接,找一个下载下来安装就好 然后在虚拟机上看一下ssh开启了没 输入```ssh localhost`` 如果被拒绝了,那就是没开启,使用winscp也是没办法传文件的 安装一下好了 sudo apt-get install openssh-server 但是我安装的时候出现了这个问题 因为Ubuntu他是自带了openssh-client的,但自带的版本够不上openssh需要的版本,升级一下版本就好了 sudo apt-get install openssh-client=1:7.2p2-4ubuntu2.8 根据报错的情况改命令里面对应的版本 然后再重新安装一下openssh就好了 看一下ssh的状态: sudo service ssh status 如果出现了active(running)就表示ok了 然后打开winscp 在登陆界面输入虚拟机的ip地址,虚拟机的用户名及密码即可 点击登录,然后就可以愉快地进行文件的传输了 来源: CSDN 作者: 不爱学习的胖纸 链接: https://blog.csdn.net/qq_41433316/article/details/103671918

Cygwin Openssh can't see /etc/sshd_config

霸气de小男生 提交于 2019-12-24 00:58:20
问题 I can't get the openssh server to work on Windows Server 2008. I have it working on two other servers, but one of them just won't work. I run ssh-host-config , and choose privilege separation. Two users are created sshd and sshd_server . Then I run net start sshd , and I see this: The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. The service did not report an error. Then I run cat /var/log/sshd.log and I see this output: /etc/sshd_config: No such file or