sshd

How to install sshd on Mac? [closed]

柔情痞子 提交于 2019-12-11 01:38:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am trying to use Hadoop on my Mac, but it requires Java and ssh , so I need to install them. I have already done the ssh part with the help of Homebrew, but after I download sshd , I don't know how to install it. How can I do this? 回答1: OS X comes with sshd , you only need to enable it in System Preferences ,

Linux下的openssh详解

一世执手 提交于 2019-12-10 17:50:25
前言 SSH(Secure Shell) 是一个提供数据通信安全、远程登录、远程指令执行等功能的安全网络协议,由芬兰赫尔辛基大学研究员 Tatu Ylönen ,于1995年提出,其目的是用于替代非安全的Telnet、rsh、rexec等远程Shell协议。之后SSH发展了两个大版本SSH-1和SSH-2。 通过使用SSH,你可以把所有传输的数据进行加密,这样"中间人"这种攻击方式就不可能实现了,而且也能够防止 DNS欺骗 和 IP欺骗 。使用SSH,还有一个额外的好处就是传输的数据是经过压缩的,所以可以加快传输的速度。SSH有很多功能,它既可以代替Telnet,又可以为FTP、Pop、甚至为PPP提供一个安全的"通道"。 SSH的基本框架 SSH协议框架中最主要的部分是三个协议: 传输层协议(The Transport Layer Protocol) :传输层协议提供服务器认证,数据机密性,信息完整性等的支持。 用户认证协议(The User Authentication Protocol) :用户认证协议为服务器提供客户端的身份鉴别。 连接协议(The Connection Protocol) :连接协议将加密的信息隧道复用成若干个逻辑通道,提供给更高层的应用协议使用。 SSH-AUTH是SSH里面用于验证客户端身份的协议。我们在用ssh命令输入密码的那一步实际上就是在这个阶段

using git with apache sshd

徘徊边缘 提交于 2019-12-10 11:36:18
问题 I'm trying to use msysgit over an SSH server I wrote in Java using sshd and I have made great progress in that i got past some git errors, I am able to connect using putty and get a shell, I have git in my windows path, but I still can't actually use git to connect to my repository over my ssh daemon. I get the following error from msysgit: fatal: ''/C/gitrepo'' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access

linux下ssh/sftp配置和权限设置

扶醉桌前 提交于 2019-12-10 08:38:38
基于 ssh 的 sftp 服务相比 ftp 有更好的安全性(非明文帐号密码传输)和方便的权限管理(限制用户的活动目录)。 1、开通 sftp 帐号,使用户只能 sftp 操作文件, 而不能 ssh 到服务器 2、限定用户的活动目录,使用户只能在指定的目录下活动,使用 sftp 的 ChrootDirectory 配置 确定版本 #确保 ssh 的版本高于 4.8p1 否则升级一下 一般都高于这个版本 ssh -V 新建用户和用户组 #添加用户组 sftp groupadd sftp #添加用户 指定家目录 指定用户组 不允许shell登录 useradd -d /home/sftp -m -g sftp -s /bin/false sftp #设置用户密码 passwd sftp 活动目录 #设定你想要限定的活动目录 mkdir -p /var/www/sftp #配置权限 注意此目录如果用于后续的 chroot 的活动目录 目录所有者必须是 root 必须是!!! chown root.sftp /var/www/sftp 基本的 ssh 配置 # ssh 服务的配置文件 vi /etc/ssh/sshd_config #基本的ssh远程登录配置 #开启验证 PasswordAuthentication yes #禁止空密码登录 PermitEmptyPasswords no

Linux学习之CentOS(十一)--CentOS6.4下Samba服务器的安装与配置

♀尐吖头ヾ 提交于 2019-12-10 04:53:14
早在学习Linux之前,就有听说过ssh这个词了,当时因为学了j2ee的三大框架,所以当听到ssh时,我立马想到的是struts + spring + hibernate,当时也在想这不是java的东西么?怎么跟Linux扯上关系了???后面在百度一下ssh以后,才发现此ssh并非咱们常说的那三大框架的总称,而是一种安全协议,Secure Shell的缩写。。。看来自己的墨水还是太少了。。。还有太多东西要去学习啊。。。。 SSH(Secure Shell的缩写),由 IETF 的网络工作小组(Network Working Group)所制定;SSH 为建立在应用层和传输层基础上的安全协议。SSH 是目前较可靠,专为远程登录会话和其他网络服务提供安全性的协议。咱们传统的远程网络服务如ftp、telnet等在本质上都是不安全的,因为它们在网络上用明文传送口令和数据,别有用心的人非常容易就可以截获这些口令和数据。当如果出现第三方假冒服务器来接收到咱们发送过去的明文数据时,此时可能就会发生严重问题。但是如果通过使用SSH,你可以把所有传输的数据进行加密,这样恶意用户的这种攻击方式就不可能实现了,而且也能够防止DNS欺骗和IP欺骗。使用SSH,还有一个额外的好处就是传输的数据是经过压缩的,所以可以加快传输的速度。SSH有很多功能,它既可以代替Telnet,又可以为FTP

Setting ssh public keys on Docker image

妖精的绣舞 提交于 2019-12-09 18:34:06
问题 I setup a Docker image that supports ssh. No problem, lots of examples. However, most examples show setting a password using passwd. I want to distribute my image. Having a fixed password, especially to root, seems like a gaping security hole. Better, to me, is to setup the image with root having no password. When a user gets the image they would then copy their public ssh file to the image /root/.ssh/authorized_keys file. Is there a recommended way to do this? Provide a Dockerfile that

创建基于ssh的可以免密码登录的docker镜像

回眸只為那壹抹淺笑 提交于 2019-12-09 15:59:26
一般情况下,linux系统管理员通过ssh服务来管理操作系统,但是docker的很多镜像是不带ssh服务的,那么我们怎么样才能管理操作系统呢? 我们学过attach ,exec的命令进入容器的方法,但是都无法解决远程管理容器的问题,因此,我们需要远程登录到容器内进行一些操作的时候,就需要ssh的支持了。 以下的镜像基于docker commit命令创建。 1. 首先使用ubuntu:14.04创建一个一个容器 docker run -it -v /opt/ssh:/opt/ssh ubuntu:14.04 /bin/bash 解释一下: 基于ubuntu的14.04版本的镜像启动一个容器 -it是为了让docker分配一个伪终端,并绑定到标准输入上,且让容器的标准输入保持打开。 -v 后面的是将本地的/opt/ssh目录挂到容器的/opt/ssh上面去(如果容器里面的/opt下面没有ssh目录,则直接会创建ssh目录),是为了将宿主机上面的文件拷贝到容器里面去。(主要是为了将authorized_keys文件从宿主机拷贝到容器中的去) 2.默认没有sshd服务,安装sshd服务 apt-get install openssh-server 一般会失败,这是因为ubuntu官方镜像中并没有包含软件包的缓存文件,使用如下命令来更新软件源信息: apt-get update 再使用

Ubuntu 开启ssh服务

£可爱£侵袭症+ 提交于 2019-12-09 13:38:42
关键指令(root用户下,非root用户所有指令前加sudo) ps -e | grep ssh(查看ssh服务是否开启) apt-get install openssh-client(安装ssh客户端程序) apt-get install openssh-server(安装ssh服务端程序) service ssh start 或者 /etc/init.d/ssh start(开启ssh服务) service ssh stop 或者 /etc/init.d/ssh stop(关闭ssh服务) 指令 1:ps -e | grep ssh( 查看ssh服务是否开启) 运行ps -e | grep ssh得出如图一的两行结果。ssh-agent指的是ubuntu的ssh服务的客户端,用于该ubuntu远程连接其它Linux主机。sshd指的是ubuntu的ssh服务的服务端,用于其它主机通过ssh服务连接该主机。 换句话说,如果没有sshd进程的话,别的系统是不能连接该ubuntu主机的,若是没有ssh-agent的话,该ubuntu主机也无法通过ssh连接其它主机。 指令 2:apt-get install openssh-client(安装ssh客户端程序) 若是运行ps -e | grep ssh没有查出ssh-agent服务,但是你又想通过ssh服务连接别的系统

could not load host key: /etc/ssh/ssh_host_rsa_...

给你一囗甜甜゛ 提交于 2019-12-09 13:13:32
#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key Generating public/private dsa key pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /etc/ssh/ssh_host_dsa_key. Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub. The key fingerprint is: xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@localhost.localdomain #ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key Generating public/private rkey pair. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /etc/ssh/ssh

Why would I use “service sshd reload” in preference to “service sshd restart”?

ぃ、小莉子 提交于 2019-12-09 10:29:17
问题 From my tests on Linux, it seems like service sshd reload Only works when sshd is already running Stops sshd if the sshd_config file has problems Returns error code 0 even if the sshd_config file has problems service sshd restart Works regardless of whether sshd is already running Stops sshd if the sshd_config file has invalid syntax or other problems Returns non-zero error code if the sshd_config file has problems I understand that they are performing different operations, but it seems to me