mbruggmann / i2ssh Goto Github PK
View Code? Open in Web Editor NEWssh into a cluster of machines using iTerm 2 split panes on OSX.
License: Apache License 2.0
ssh into a cluster of machines using iTerm 2 split panes on OSX.
License: Apache License 2.0
Hello,
I just started using i2ssh and found that it is unsetting HISTFILE before doing SSH into device. I found it to be part of file applescript.py in your repo.
Is there any specific reason for it? Why don't log every ssh commands into bash history?
I'm getting the following error:
toby-MBP:director-azure toby$ i2ssh azure
/var/folders/yw/d423wsm173b00s0xctd1mj5c0000gp/T/tmpRP2uIc:4849:4855: script error: Expected “,” but found class name. (-2741)
Not sure what to do.
Here's how I got here:
I installed i2ssh:
pip install i2ssh
.
.
.
Successfully installed i2ssh-0.4.0 pyobjc-core-3.2.1 pyobjc-framework-Cocoa-3.2.1 pyyaml-3.12 quik-0.2.2`
I then used the following cluster file:
````sh
azure_small:
hosts:
- director21.westus.cloudapp.azure.com
- director22.westus.cloudapp.azure.com
- director23.westus.cloudapp.azure.com
- director24.westus.cloudapp.azure.com
- director25.westus.cloudapp.azure.com
After that I got the error I showed at the top :-(
Hello,
I'm a fish shell user, and I have done a fork to make i2ssh work with fish, but it would be nice if it checked your shell, and if fish, did something different. Fish doesn't support &&; that's the main change. Tonight I'm going to do some additional work to add in a test to check your shell, and if it's fish, then run a different base cmd.
Dustin
Collecting i2ssh
Using cached i2ssh-0.3.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /anaconda/lib/python3.5/site-packages (from i2ssh)
Collecting quik (from i2ssh)
Using cached quik-0.2.2.tar.gz
Collecting pyobjc-framework-Cocoa (from i2ssh)
Using cached pyobjc-framework-Cocoa-3.1.1.tar.gz
Complete output from command python setup.py egg_info:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 154, in save_modules
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 195, in setup_context
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 243, in run_setup
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 273, in run
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 242, in runner
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 46, in _execfile
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 696, in
File "//anaconda/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "//anaconda/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "//anaconda/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/bdist_egg.py", line 152, in run
File "//anaconda/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "//anaconda/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 371, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 186, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 209, in find_sources
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 293, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 322, in add_defaults
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/sdist.py", line 132, in add_defaults
File "//anaconda/lib/python3.5/distutils/cmd.py", line 299, in get_finalized_command
cmd_obj.ensure_finalized()
File "//anaconda/lib/python3.5/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 525, in finalize_options
File "//anaconda/lib/python3.5/subprocess.py", line 629, in check_output
**kwargs).stdout
File "//anaconda/lib/python3.5/subprocess.py", line 711, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/xcodebuild', '-version', '-sdk', 'macosx', 'Path']' returned non-zero exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/pip-build-0f05h5hw/pyobjc-framework-Cocoa/setup.py", line 69, in <module>
extra_link_args=["-framework", "Foundation"]),
File "/private/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/pip-build-0f05h5hw/pyobjc-framework-Cocoa/pyobjc_setup.py", line 496, in setup
**k
File "//anaconda/lib/python3.5/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/dist.py", line 269, in __init__
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/dist.py", line 313, in fetch_build_eggs
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/pkg_resources/__init__.py", line 827, in resolve
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/pkg_resources/__init__.py", line 1072, in best_match
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/pkg_resources/__init__.py", line 1084, in obtain
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/dist.py", line 380, in fetch_build_egg
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/easy_install.py", line 640, in easy_install
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/easy_install.py", line 670, in install_item
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/easy_install.py", line 850, in install_eggs
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/easy_install.py", line 1078, in build_and_install
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/easy_install.py", line 1064, in run_setup
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 246, in run_setup
File "//anaconda/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 195, in setup_context
File "//anaconda/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 166, in save_modules
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 141, in resume
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/pkg_resources/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 154, in save_modules
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 195, in setup_context
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 243, in run_setup
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 273, in run
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 242, in runner
File "//anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/sandbox.py", line 46, in _execfile
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 696, in <module>
File "//anaconda/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "//anaconda/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "//anaconda/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/bdist_egg.py", line 152, in run
File "//anaconda/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "//anaconda/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 371, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 186, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 209, in find_sources
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 293, in run
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/egg_info.py", line 322, in add_defaults
File "/anaconda/lib/python3.5/site-packages/setuptools-20.3-py3.5.egg/setuptools/command/sdist.py", line 132, in add_defaults
File "//anaconda/lib/python3.5/distutils/cmd.py", line 299, in get_finalized_command
cmd_obj.ensure_finalized()
File "//anaconda/lib/python3.5/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/easy_install-zbdltxdq/pyobjc-core-3.1.1/setup.py", line 525, in finalize_options
File "//anaconda/lib/python3.5/subprocess.py", line 629, in check_output
**kwargs).stdout
File "//anaconda/lib/python3.5/subprocess.py", line 711, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/bin/xcodebuild', '-version', '-sdk', 'macosx', 'Path']' returned non-zero exit status 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/1d/my52fq3136166ks_f6nh73x80000gp/T/pip-build-0f05h5hw/pyobjc-framework-Cocoa/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.