ssh-forever 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ # ssh-forever
2
+
3
+ Simple command to give you password-less SSH login on remote servers:
4
+
5
+ ssh-forever username@yourserver.com
6
+
7
+ == Installation
8
+
9
+ gem sources --add http://gemcutter.org
10
+ gem install ssh-forever
11
+
12
+ == Example:
13
+
14
+ [matt@bowie ssh-forever (master)]$ ./bin/ssh-forever mattwynne@mattwynne.net
15
+ You do not appear to have a public key. I expected to find one at /Users/matt/.ssh/id_rsa.pub
16
+ Would you like me to generate one? [Y/n]y
17
+ Copying your public key to the remote server. Prepare to enter your password for the last time.
18
+ mattwynne@mattwynne.net's password:
19
+ Success. From now on you can just use plain old 'ssh'. Logging you in...
20
+ Linux broncos 2.6.29-xeon-aufs2.29-ipv6-qos-grsec #1 SMP Thu Jul 9 16:42:58 PDT 2009 x86_64
21
+ _
22
+ | |__ _ _ ___ _ _ __ ___ ___
23
+ | '_ \ '_/ _ \ ' \/ _/ _ (_-<
24
+ |_.__/_| \___/_||_\__\___/__/
25
+
26
+ Welcome to broncos.dreamhost.com
27
+
28
+ Any malicious and/or unauthorized activity is strictly forbidden.
29
+ All activity may be logged by DreamHost Web Hosting.
30
+
31
+ Last login: Sat Aug 15 17:24:17 2009 from 212.69.58.104
32
+ [broncos]$
33
+
34
+ == Copyright
35
+
36
+ Copyright (c) 2009 Matt Wynne. See LICENSE for details.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gem|
7
7
  gem.name = "ssh-forever"
8
- gem.summary = %Q{Smooth password-less SSH setup}
8
+ gem.summary = %Q{Butter-smooth password-less SSH setup}
9
9
  gem.description = %Q{Provides a replacement for the SSH command which automatically copies your public key while logging in}
10
10
  gem.email = "matt@mattwynne.net"
11
11
  gem.homepage = "http://github.com/mattwynne/ssh-forever"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -10,8 +10,9 @@ module SecureShellForever
10
10
  end
11
11
  generate_public_key
12
12
  end
13
+ puts "Copying your public key to the remote server. Prepare to enter your password for the last time."
13
14
  `ssh #{login} "#{remote_command}"`
14
- puts "Your public key has been copied to the remote server. From now on you can just use plain old 'ssh'. Logging you in..."
15
+ puts "Success. From now on you can just use plain old 'ssh'. Logging you in..."
15
16
  exec "ssh #{login}"
16
17
  end
17
18
 
@@ -26,7 +27,7 @@ module SecureShellForever
26
27
  end
27
28
 
28
29
  def key
29
- `cat #{public_key_path}`
30
+ `cat #{public_key_path}`.strip
30
31
  end
31
32
 
32
33
  def generate_public_key
@@ -38,8 +39,8 @@ module SecureShellForever
38
39
  end
39
40
  end
40
41
  end
41
-
42
- flunk("Unable to generate your public key.") unless File.exists?(public_key_path)
42
+ Process.wait
43
+ flunk("Oh dear. I was unable to generate your public key. Run the command 'ssh-keygen -t rsa' manually to find out why.") unless $? == 0
43
44
  end
44
45
 
45
46
  def flunk(message)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ssh-forever}
8
- s.version = "0.1.0"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Wynne"]
@@ -16,12 +16,12 @@ Gem::Specification.new do |s|
16
16
  s.executables = ["ssh-forever"]
17
17
  s.extra_rdoc_files = [
18
18
  "LICENSE",
19
- "README.rdoc"
19
+ "README.markdown"
20
20
  ]
21
21
  s.files = [
22
22
  ".gitignore",
23
23
  "LICENSE",
24
- "README.rdoc",
24
+ "README.markdown",
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "bin/ssh-forever",
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.rdoc_options = ["--charset=UTF-8"]
33
33
  s.require_paths = ["lib"]
34
34
  s.rubygems_version = %q{1.3.4}
35
- s.summary = %q{Smooth password-less SSH setup}
35
+ s.summary = %q{Butter-smooth password-less SSH setup}
36
36
 
37
37
  if s.respond_to? :specification_version then
38
38
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssh-forever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Wynne
@@ -21,11 +21,11 @@ extensions: []
21
21
 
22
22
  extra_rdoc_files:
23
23
  - LICENSE
24
- - README.rdoc
24
+ - README.markdown
25
25
  files:
26
26
  - .gitignore
27
27
  - LICENSE
28
- - README.rdoc
28
+ - README.markdown
29
29
  - Rakefile
30
30
  - VERSION
31
31
  - bin/ssh-forever
@@ -58,6 +58,6 @@ rubyforge_project:
58
58
  rubygems_version: 1.3.4
59
59
  signing_key:
60
60
  specification_version: 3
61
- summary: Smooth password-less SSH setup
61
+ summary: Butter-smooth password-less SSH setup
62
62
  test_files: []
63
63
 
@@ -1,18 +0,0 @@
1
- = ssh-forever
2
-
3
- Description goes here.
4
-
5
- == Note on Patches/Pull Requests
6
-
7
- * Fork the project.
8
- * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
- * Commit, do not mess with rakefile, version, or history.
12
- (if you want to have your own version, that is fine but
13
- bump version in a commit by itself I can ignore when I pull)
14
- * Send me a pull request. Bonus points for topic branches.
15
-
16
- == Copyright
17
-
18
- Copyright (c) 2009 Matt Wynne. See LICENSE for details.