geofront-auth / geofront-cli Goto Github PK
View Code? Open in Web Editor NEWIt provides a CLI client for Geofront, a simple SSH key management server.
Home Page: https://pypi.python.org/pypi/geofront-cli
License: GNU General Public License v3.0
It provides a CLI client for Geofront, a simple SSH key management server.
Home Page: https://pypi.python.org/pypi/geofront-cli
License: GNU General Public License v3.0
Shortcut for geofront-cli authorize remote && scp file remote:path/
.
i got below error after cancel gfg
choose nothing and press esc.
Total 33 remotes.
Traceback (most recent call last):
File "~/.local/bin/gfg", line 11, in <module>
sys.exit(main_go())
File "~/.local/venvs/geofront-cli/lib/python2.7/site-packages/geofrontcli/cli.py", line 492, in main_go
main(['go'])
File "~/.local/venvs/geofront-cli/lib/python2.7/site-packages/geofrontcli/cli.py", line 475, in main
args.function(args)
File "~/.local/venvs/geofront-cli/lib/python2.7/site-packages/geofrontcli/cli.py", line 404, in go
alias = chosen.split()[0]
AttributeError: 'NoneType' object has no attribute 'split'
geofront-cli
version is 0.4.0.
Traceback (most recent call last):
File "/usr/bin/geofront-cli", line 9, in <module>
load_entry_point('geofront-cli==0.2.2', 'console_scripts', 'geofront-cli')()
File "/usr/lib/python3.4/site-packages/geofrontcli/cli.py", line 416, in main
args.function(args)
File "/usr/lib/python3.4/site-packages/geofrontcli/cli.py", line 354, in scp
src_client, src_remote, src_path = parse_scp_path(args.source, args)
File "/usr/lib/python3.4/site-packages/geofrontcli/cli.py", line 337, in parse_scp_path
remote = client.authorize(alias)
File "/usr/lib/python3.4/site-packages/geofrontcli/client.py", line 189, in authorize
mimetype, _ = parse_mimetype(r.headers['Content-Type'])
AttributeError: '_io.BytesIO' object has no attribute 'headers'
$ geofront-cli start
Geofront server URL: http://ec2-54-199-24-79.ap-northeast-1.compute.amazonaws.com/
It is not a secure URL. https:// is preferred over http://. Continue (y/N)? y
Continue to authenticate in your web browser...
Press return to continue
Traceback (most recent call last):
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/bin/geofront-cli", line 9, in <module>
load_entry_point('geofront-cli==0.2.1', 'console_scripts', 'geofront-cli')()
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/cli.py", line 413, in main
args.function(args)
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/cli.py", line 101, in start
authenticate.call(args)
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/cli.py", line 139, in authenticate
if public_key and public_key.fingerprint not in client.public_keys:
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/_abcoll.py", line 369, in __contains__
self[key]
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/client.py", line 236, in __getitem__
code, body, error = self._request((fprint,))
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/client.py", line 214, in _request
with self.client.request(method, path, data, headers) as resp:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/Users/leejaeyoung/Work/.py_envs/tmp-8a240c25debc26fe/lib/python2.7/site-packages/geofrontcli/client.py", line 113, in request
buffered = io.ByteIO(read)
AttributeError: 'module' object has no attribute 'ByteIO'
I tried and got another error
Traceback (most recent call last):
File "C:\Python27\Scripts\geofront-cli-script.py", line 9, in <module>
load_entry_point('geofront-cli==0.2.2', 'console_scripts', 'geofront-cli')()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 458, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2545, in load_entry_point
return ep.load()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2244, in load
['__name__'])
File "C:\Python27\lib\site-packages\geofrontcli\cli.py", line 28, in <module>
SSH_PROGRAM = subprocess.check_output(['which', 'ssh']).strip() or None
File "C:\Python27\lib\subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\Python27\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Windows doesn't have which
command. I think it would be where
instead on Windows
So I can't access my server with a command geofront-cli ssh
.
$ geofront-cli ssh [email protected]
geofront-cli seems incompatible with the server.
Try `pip install --upgrade geofront-cli` command.
The server version is 0.3.0.
$ sudo pip install --upgrade geofront-cli==0.3.0
Downloading/unpacking geofront-cli==0.3.0
Could not find a version that satisfies the requirement geofront-cli==0.3.0 (from versions: 0.1.1, 0.2.0, 0.2.1, 0.1.0, 0.1.1, 0.2.0, 0.2.1, 0.2.2)
Cleaning up...
No distributions matching the version for geofront-cli==0.3.0
Storing debug log for failure in /Users/aioo/.pip/pip.log
Quite a few companies (including the one I work at) have issued work from home policies due to the recent outbreak. Unfortunately, quite a few companies also lack a proper VPN infrastructure - meaning most work needs to be done through a bastion server.
It would be super useful to have support for jump hosts. (it's a feature that is supported in modern versions of OpenSSH through the -J command line parameter.)
If the maintainers are willing to land a patch given a PR, I'd be happy to take a whack at this.
I got following error when I tried to do geofront-cli start
Traceback (most recent call last):
File "C:\Python27\Scripts\geofront-cli-script.py", line 9, in <module>
load_entry_point('geofront-cli==0.2.2', 'console_scripts', 'geofront-cli')()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 458, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2545, in load_entry_point
return ep.load()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2244, in load
['__name__'])
File "C:\Python27\lib\site-packages\geofrontcli\cli.py", line 13, in <module>
from dirspec.basedir import load_config_paths, save_config_path
File "C:\Python27\lib\site-packages\dirspec\basedir.py", line 22, in <module>
from dirspec.utils import (default_cache_home,
File "C:\Python27\lib\site-packages\dirspec\utils.py", line 161, in <module>
special_folders = get_special_folders()
File "C:\Python27\lib\site-packages\dirspec\utils.py", line 138, in get_special_folders
from win32com.shell import shell, shellcon
ImportError: No module named win32com.shell
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.