net-ssh
How to get exit status with Ruby's Net::SSH library?
I have a snippet of code, simply trying to execute a script on a remote server, in the event that it fail开发者_如何学Cs, I\'d like to make a follow-up call, imagine this:[详细]
2023-01-10 01:04 分类:问答Net::SSH sudo command hangs after entering password
I\'ve been trying to write a small library using Thor to help assist me in quick creating new projects and sites.I wrote this small method:[详细]
2023-01-09 01:50 分类:问答How to create a file in remote host along with the creation of directory using ssh
I have a file say /a/b/c/file in my host. I want to create a file on remote host in directory say d开发者_运维百科est. Now the question is, how do I create a file in remote host as /dest/a/b/c/d/file[详细]
2023-01-05 16:12 分类:问答Local-to-remote port forwarding using Ruby/Net::SSH for remote db connection
I\'m accessing a remote database using a local-to-remote port forwarding from my windows box. It works like a charm using putty for port forwarding but it fails when I try to forward开发者_如何学C usi[详细]
2023-01-01 18:53 分类:问答Executing Password Change over Ruby Net-SSH
I am looking to execute a password change over Net-ssh and this code seems to hang: Net::SSH.start(server_ip, \"user\", :verbose => :debug ) do |session|[详细]
2022-12-31 21:55 分类:问答Can i Use the value of a variable from within a ruby script inside ssh.exec()
If i have a# {} , like#{results}, in the snippet below: results = Array.new f = open(\"/Users/kahmed/messages\", \"r\") [详细]
2022-12-30 03:03 分类:问答Respond to a SSH prompt before first command with ruby and Net::SSH
I\'m trying to connect, using Net::SSH, to a server that immediately after login executes a script that requires input from user. The user has to enter \"1\" or \"2\" and will receive some data via in[详细]
2022-12-19 07:15 分类:问答Ruby net-ssh: How to authenticate with pubkey using a gateway
I am trying to run a script in several machines I have at work, to gather some information about them, such as which OS they\'re running, what services run on them, some configurations, etc. I have a[详细]
2022-12-15 21:35 分类:问答Local installation of ruby / rubygems with no root access
I have a machine at work from wich I\'d like to run a script that gathers some information about other machines. I want to do it in Ruby, since it\'s what I know best, but I\'ve ran into some problems[详细]
2022-12-14 18:08 分类:问答Using Ruby and SCP/SSH, how to determine if a file exists before uploading a copy
I\'m uploading a file to a remote server using SCP, but what\'s the proper way开发者_JAVA技巧 of seeing if that file exists before doing so?You can\'t do this with scp. However you can do it with sftp[详细]
2022-12-09 23:49 分类:问答