module Proxy::RemoteExecution::Ssh
Constants
- VERSION
Public Class Methods
private_key_file()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh.rb, line 24 def private_key_file File.expand_path(Plugin.settings.ssh_identity_key_file) end
public_key_file()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh.rb, line 28 def public_key_file File.expand_path("#{private_key_file}.pub") end
validate!()
click to toggle source
# File lib/smart_proxy_remote_execution_ssh.rb, line 9 def validate! unless private_key_file raise "settings for `ssh_identity_key` not set" end unless File.exist?(private_key_file) raise "Ssh public key file #{private_key_file} doesn't exist.\n"\ "You can generate one with `ssh-keygen -t rsa -b 4096 -f #{private_key_file} -N ''`" end unless File.exist?(public_key_file) raise "Ssh public key file #{public_key_file} doesn't exist" end end