direct_ssh 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/direct_ssh/validator.rb +2 -0
- data/lib/direct_ssh/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjA1OTA3N2M3NjRkNzUwMTUzYjJiYzIzMjM2NWYwMDcwYzA1M2U1Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGQ1OTk3YjM0MDg4ZjNlYjQyZDdjODM0MWFmYTFjMWJlMzM1ZTUzNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGU2YmViMDA3NzhmZWQ1OTVkN2Y2N2U3MTEyOTdlYTEyYzI4ZmZlZjAzYTQ1
|
10
|
+
ZDgwNDYzNDZhYzU5MWNkM2Q3MWMzZDVmZTg1YmJlYTAyNzlmZDBhNzNlMzEy
|
11
|
+
OWQ5OGRhMmJmNWE4ZjkyMGVjNzI0Njk0YTVkZDQ3NjBkMGNlYmU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDA1MmUyNjExN2M5OTBhZGI0MDJiNzIxNTEyZTllMDQ2OWI0ZDY4NWQ2M2Rm
|
14
|
+
ZWZhNGFiY2RhOWZkZWQ2ZjY4Mjk2ZWFiYTBjMTRhZDUwY2RhM2UzZWQ1N2Vk
|
15
|
+
NTQ5YjE1MDEyMGFlNjdkZmNjMDk1OTI3MzU1ZjEwZDM2NDNmMjk=
|
data/lib/direct_ssh/validator.rb
CHANGED
@@ -13,6 +13,7 @@ class Validator
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def start(host, user, options={})
|
16
|
+
options[:auth_methods] = ["publickey"]
|
16
17
|
return Net::SSH.start(host, user, options)
|
17
18
|
rescue Net::SSH::AuthenticationFailed
|
18
19
|
@direct = false
|
@@ -21,6 +22,7 @@ class Validator
|
|
21
22
|
options[:password] = ask("#{user}@#{host}'s password: ") { |q| q.echo = false }
|
22
23
|
|
23
24
|
begin
|
25
|
+
options[:auth_methods] = ["password"]
|
24
26
|
return Net::SSH.start(host, user, options)
|
25
27
|
rescue Net::SSH::AuthenticationFailed
|
26
28
|
end
|
data/lib/direct_ssh/version.rb
CHANGED