Articles of ssh

与Apache的SSH不给/ dev / tty错误

我试图执行一个命令ssh到一个运行Apache的Tomcat实例的主机。 由于以下错误,这不起作用: debug1: read_passphrase: can't open /dev/tty: No such device or address 但是,如果我打开一个shell并手动su到apache用户,我可以执行这个命令就好了。 我是否需要更改configuration,或者可以使用-t选项和ssh来指定存在的设备或地址?

压缩和发送

以下工作如预期: ssh -t [email protected] "sudo mysqldump –databases company test " > /home/shantanu/backup_full_101x.sql 当我添加gzip它不起作用: ssh -t [email protected] "sudo mysqldump –databases company test | gzip " > /home/shantanu/backup_full_101x.sql.gzip 我尝试使用 – gzip后,它仍然没有工作。 如何压缩数据并将其发送到当前服务器?

使用SSH获取Kerberos票证

我希望在获得全自动login解决scheme时获得Kerberos 5票证。 通常,你首先使用kinit,然后使用ssh: > kinit user@DOMAIN user@DOMAIN's Password: (enter password) > ssh user@host (successful login) 我想简单地运行ssh user @ host并自动检查Kerberos票证。 如果不在那里,我想要它得到一张票,然后login。 > kdestroy > ssh user@host user@DOMAIN's Password: (enter password) (successful login) (log off of host) > klist (show ticket info) 我希望这是在每个主机的基础上configuration的,因为不是每个login的主机都支持Kerberos。

使用SSH在多个域的日志中查找对有问题的脚本的访问

我在Dreamhost VPS上运行了几个(〜20个)站点。 最近我最大限度地为VPS分配内存,我想find问题。 我想有一个SSH脚本,将扫描所有域的所有日志文件,并告诉我什么对象(图像,PHP脚本等)获取大量的电话。 它将统计每个/logs/*/http/access.log中的调用,做一个降序sorting并向我展示跨域的前十名。 但我不知道该怎么做。 可以这样做吗? 任何人都可以build议一个脚本,将这样做?

重复找不到远程备份目录?

使用我的私钥这样做,这个命令允许我连接到/ home / backupUser /备份就好了: $ sudo sftp -oPort=7843 [email protected]:backup 但是,当我运行重复,我得到以下错误: duplicity full –exclude … / scp://backupUser:[email protected]:7843:/backup bash: [email protected]:7843./backup: No such file or directory 我假设duplicity将解释/backuppath相对于用户的主目录。 但是由于上述命令不起作用,我还试图在命令末尾的备份目录中closures/ ,即 duplicity full –exclude … / scp://backupUser:[email protected]:7843:backup bash: [email protected]:7843:backup: command not found 有什么我在这里失踪,如添encryption码的私钥使此命令的工作?

OpenSSH和远程调用

在提出问题之前,我必须提供一些背景信息。 我有一个调用SSIS包的SSIS服务器。 SSIS包将文件复制到文件服务器。 复制操作后,SSIS包必须调用SFTP传输到SFTP将文件从文件服务器复制到另一个文件服务器。 在架构中:SSIS服务器 – >文件服务器1(SSH) – >文件服务器2(SSH) 文件服务器1具有作为SSH服务器的SSH客户端和文件服务器2的angular色。 SSIS服务器和文件服务器1是入站(内部部署)和文件服务器2出站(外部部署)。 SSH必须是OpenSSH,所有服务器都是Windows Server 2008 R2 64位。 现在的问题是: 哪个OpenSSH软件最适合作为OpenSSH客户端(在Windows Server 2008 R2 64位上)? 与第1点密切相关:如何从SSIS服务器远程完成OpenSSH文件传输调用? 关于第2点:有使用PowerShell来调用传输的想法….

权限在创build/复制ssh密钥对时被拒绝

可能重复: SSHconfiguration,公共密钥,权限被拒绝(公钥,密码)。 错误 我试图build立一个sshkey对使用的教程在这里的帮助下,但是当我到达第一步的第一步(SCP命令),我迎接这个可爱的错误 权限被拒绝(公钥,键盘交互)。 失去了连接 这对我来说没有任何意义,因为这似乎意味着我无法连接,因为我没有公钥,但我试图连接的全部原因是提供一个公钥。 我花了早上的一大部分时间寻找一个解决scheme,我能find的最接近的是这个,但是它是封闭的,这个问题似乎没有被回答。 对不起,外面的链接,我最初发布在SO,并被告知来这里而不是。 我没有物理访问我尝试连接到的服务器,但是,可以联系那些如果绝对必要的话。 我的问题是我如何才能发送我的公钥到服务器,如果它拒绝连接,直到它有公钥? 这是详细的输出,以防它有帮助 Executing: program /usr/bin/ssh host myServer, user myClient, command scp -v -t — pubkey.txt OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to myServer [myIp] port 22. debug1: Connection […]

Unix上的SFTP默认为密钥authentication

这对你所有的Unix专家来说可能是一个简单的办法,但是我无法弄清楚,所以我试图从命令行inputwindows服务器,远程拒绝连接。 当我以详细模式运行它时,我可以看到系统正在尝试使用我的一个公用密钥(在我的sshconfiguration中设置,并用于另一个服务器,用于身份validation)进行身份validation,问我一个密码,这是一个消毒痕迹的消毒版本: sftp -v<username>@<remote_ip_address> OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/Admin/.ssh/config debug1: Reading configuration data /etc/ssh_config debug1: Applying options for * debug1: Connecting to <remote_ip_address> [<remote_ip_address>] port 22. debug1: Connection established. debug1: identity file /Users/Admin/.ssh/id_rsa type 1 debug1: identity file /Users/Admin/.ssh/id_rsa-cert type -1 debug1: identity file /Users/Admin/.ssh/id_dsa type -1 debug1: identity […]

apache服务器在easyapache重build后closures

我已经重build了我的apache服务器(使用WHM运行CentOS)来使用easyapache来更新我的apache特性。 在重build过程结束与build立成功后,我的网站成为无法访问与错误消息:无法连接到服务器。 我已经重新启动Apache服务器和SQL,然后重新重build,但具有相同的结果。 由于重build过程,我已经禁用了防火墙。 这是错误日志 [Fri Dec 23 00:17:40 2011] [notice] caught SIGTERM, shutting down [Fri Dec 23 00:17:42 2011] [notice] SSL FIPS mode disabled [Fri Dec 23 00:17:42 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Fri Dec 23 00:17:42 2011] [notice] SSL FIPS mode disabled [Fri Dec 23 00:17:42 2011] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 […]

如何通过SSH连接到codesion.com的GitHub?

我想从Codesion发布到Github,但是即使当SSH-Key是Passphrase-less并且一切工作在本地完美时,编码服务器都不能连接到github,为什么呢? 换句话说,我想从发布连接到github,SSH密钥完美无缺,但是无论密码服务器从未连接到Github,为什么? 请看附图。 http://i.stack.imgur.com/zzcgm.jpg 谢谢!