问题标签 [sshd]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
sshd - 如何在 .ssh/authorized_keys 中添加命令
我读过man sshd
一个可以在用户使用特定密钥登录时添加登录后处理:
但是当我尝试 ssh 进入系统时,目标主机没有注册该线路,而是要求输入密码。添加这个的正确方法是什么?我想做类似的事情
我正在使用 Suse SLE 11 SP2。
谢谢迪内什
android - Mina sshd 和 spongycastle:未找到 KeyPairGenerator EC 实现
我正在尝试使用 spongycastle 1.51 在 android 上使用 mina sshd 0.12.0。
我已按照可用的说明进行操作,使用注册 Spongycastle
Spongycastle 已被验证为干净地注册并请求算法“EC”:
工作正常。
当我最终尝试建立与服务器的 ssh 连接时,它失败并显示以下堆栈跟踪:
我在这里不知所措。插入的提供程序是否以某种方式线程本地?
我很感谢任何提示。
debian - Debian Lenny 的简单 deb 包?
在我们运行 Debian Lenny 的 NAS 上,我在 sshd_config 中愚蠢地将 PermitRootLogin 设置为无密码,而没有先正确设置密钥,现在被锁定了。这是一个 WD Sharespace 并且阅读它看起来我恢复 root SSH 访问的最佳方法是创建一个覆盖原始 sshd_config 文件的 deb 包。我发现描述 deb 包创建的网站非常繁琐。我需要这个包做的就是覆盖一个文件。有没有一种简单的方法可以做到这一点?
ssh - Apache MINA SFTP - 文件传输成功后添加回调方法
我正在使用 Apache Mina 构建我自己的 SFTP 服务器。我想在每次文件传输完成后自动通知服务器。请在这个方向上帮助我一些指示。
理想情况下,应该有一个我需要实现的接口和一个我需要注册我的回调函数的类。我知道 Apache MIna SSHD 在后台使用 Apache Mina,它具有 IO 事件、处理程序和过滤器来完成此任务。
我正在寻找更具体的东西。注册我的回调函数的类和方法名称会很有帮助。
java - Apache MINA SFTP - 限制用户看到的目录结构
我正在使用 Apache MINA SSHD 构建我自己的自定义 SFTP 服务器。
我想限制我的用户看到的文件系统。我只是想让他们看到 /aa/bb/cc 下的目录结构
我不希望他们能够查看或导航任何其他文件夹。
在 /aa/bb/cc 下的目录中,用户将对某些目录具有读取权限,而对选定的少数目录具有写入权限。我如何做到这一点?
cygwin - 在cygwin中启动sshd服务时是否有3个进程?
在我的 cygiwn(win8.1 64bit 上的 1.7.33 64bit)中启动 sshd 服务后,有 3 个进程(红色框内),其中两个有动态 pid(黄色框)。如果我对黄色框中的进程使用 kill 命令,它不会响应这样的进程,但是如果再次使用 ps 命令,你会看到它们仍然存在,但使用了不同的 pid。
http://i.stack.imgur.com/hAU4e.png http://i.stack.imgur.com/Q6all.png
sshd - Apache Mina SSHD 服务器 - 如何获取转发端口列表
我已经用 Apache Mina SSHD 构建了一个服务器/客户端系统。客户端通过创建会话来连接服务器。然后他们请求端口转发:
我需要的是:在服务器端,我应该能够知道哪个客户端的哪个端口被转发到服务器的哪个端口。
例如,如果客户端 A 请求在其端口 12345 和服务器的端口 67890 之间进行远程转发;客户端 B 请求在其端口 11111 和服务器端口 22222 之间进行远程转发;我需要一个类似的列表:
- 客户A 67890
- 客户B 22222
key - RHEL - 使用 root 但没有密码的 SSH 登录
我正在努力使用密钥身份验证启用 root ssh 登录,几个小时后我发现在使用命令启动 sshd 时我无法使用密钥登录
但是当我单独或使用默认配置文件启动 /usr/sbin/sshd
我可以毫无问题地使用公钥登录。有谁知道为什么?我的设置:
PAM 模块:
我正在使用 DSA 密钥,这是详细的输出:
ssh - SSH 服务器是否曾经以明文形式接收用户密码?
我只是想知道 SSH 服务器是否会在身份验证过程中的某个时刻获得纯密码。我知道密码是加密发送的,但它必须以某种方式进行验证,从而由服务器解密。SSH 客户端是否仅发送其密码的哈希值或如何维护安全性?
linux - Does sshd sends data into stdin after SSH_MSG_CHANNEL_REQUEST exec
I am writing part of the software that has to execute remote shell command. This command waits for some additional info from stdin in order to continue it's execution.
Here is the remote program test_interactive.sh:
At this moment I am initiating the execution of my command with SSH_MSG_CHANNEL_REQUEST exec message. Then after window adjustments and success message, I am sending SSH_MSG_CHANNEL_DATA with the data that I'd like to be pushed into my program's stdin by sshd server. As it turned out, my program doesn't receive anything on stdin.
SSH_MSG_CHANNEL_REQUEST exec causes sshd process to spawn two additional processes sshd(63023) and test_interactive(63024).
The process test_interactive*(63024) has the following file descriptors:
And here is the sequence of messages that leads me to the state, where I'm sending messages and receiving back nothing from my program:
How should I instruct sshd to push data into stdin that it receives with SSH_MSG_CHANNEL_DATA? I have tried to find it out by looking at the source code of sshd, but it's quite big and I think it will take weeks for me to figure this out :)
Combination of requests that finally does it
The daemon sshd pushes data into stdin if you do the following:
- Immediately after 'SSH_MSG_CHANNEL_REQUEST exec' you send 'SSH_MSG_CHANNEL_DATA Hello World'
- Immediately after 'SSH_MSG_CHANNEL_DATA Hello World' you send 'SSH_MSG_CHANNEL_EOF'
Or more illustratively:
This doesn't solve the problem, but gives a little bit more information on the sshd's behaviour. I still need to be able to form my message for the program based on what has come to me, not just fire and forget.
By the way, it would be cool to add rfc4254 tag ;) ↓