You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whirr.apache.org by to...@apache.org on 2012/11/20 12:13:33 UTC

git commit: WHIRR-680. Add python scripts to aid ssh/scp in to VMs. Contributed by Steve Loughran.

Updated Branches:
  refs/heads/trunk d7392d0e2 -> adf88711a


WHIRR-680. Add python scripts to aid ssh/scp in to VMs. Contributed by Steve Loughran.


Project: http://git-wip-us.apache.org/repos/asf/whirr/repo
Commit: http://git-wip-us.apache.org/repos/asf/whirr/commit/adf88711
Tree: http://git-wip-us.apache.org/repos/asf/whirr/tree/adf88711
Diff: http://git-wip-us.apache.org/repos/asf/whirr/diff/adf88711

Branch: refs/heads/trunk
Commit: adf88711a5e8daf3d2e8ea6f1aab3e2542b08dc9
Parents: d7392d0
Author: Tom White <to...@cloudera.com>
Authored: Tue Nov 20 11:10:42 2012 +0000
Committer: Tom White <to...@cloudera.com>
Committed: Tue Nov 20 11:12:23 2012 +0000

----------------------------------------------------------------------
 CHANGES.txt            |    3 +++
 contrib/scripts/scp-in |   22 ++++++++++++++++++++++
 contrib/scripts/ssh-in |   22 ++++++++++++++++++++++
 3 files changed, 47 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/whirr/blob/adf88711/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index b1edfdc..aa63b06 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -14,6 +14,9 @@ Release 0.8.2 (unreleased changes)
 
     WHIRR-679. Switch to HBase 0.94.2. (abayer via tomwhite)
 
+    WHIRR-680. Add python scripts to aid ssh/scp in to VMs.
+    (Steve Loughran via tomwhite)
+
 Release 0.8.1 - 2012-10-19
 
   NEW FEATURES

http://git-wip-us.apache.org/repos/asf/whirr/blob/adf88711/contrib/scripts/scp-in
----------------------------------------------------------------------
diff --git a/contrib/scripts/scp-in b/contrib/scripts/scp-in
new file mode 100755
index 0000000..a33c7e3
--- /dev/null
+++ b/contrib/scripts/scp-in
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from subprocess import call
+import sys
+
+args = sys.argv[1:]
+call(["scp", "-o", "UserKnownHostsFile /dev/null", "-o", "StrictHostKeyChecking=no"] + args)

http://git-wip-us.apache.org/repos/asf/whirr/blob/adf88711/contrib/scripts/ssh-in
----------------------------------------------------------------------
diff --git a/contrib/scripts/ssh-in b/contrib/scripts/ssh-in
new file mode 100755
index 0000000..baf2547
--- /dev/null
+++ b/contrib/scripts/ssh-in
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from subprocess import call
+import sys
+
+args = sys.argv[1:]
+call(["ssh", "-o", "UserKnownHostsFile /dev/null", "-o", "StrictHostKeyChecking=no"] + args)