csc_scripts's People
Forkers
lwlxwangcsc_scripts's Issues
JunOS error
When I run the script on my SRX100H2, I get the following error after a while:
Timed-out reading channel, data not available.
Traceback (most recent call last):
File "cb.py", line 77, in
main()
File "cb.py", line 63, in main
tar_file = tarfile.open("./output/{0}".format(tarfile_name), "w:gz")
File "/usr/lib64/python3.6/tarfile.py", line 1591, in open
return func(name, filemode, fileobj, **kwargs)
File "/usr/lib64/python3.6/tarfile.py", line 1638, in gzopen
fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj)
File "/usr/lib64/python3.6/gzip.py", line 163, in init
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
FileNotFoundError: [Errno 2] No such file or directory: './output/configs-2020-11-19-1511.tar.gz'
Where is this file supposed to be created?
paramiko.ssh_exception.AuthenticationException: Authentication failed. (
Hello again,
The script throws the above error now.
Tht traceback is as follows:
(sebrupik) [tdadmin@nl-ehv-torvalds sebrupik]$ python3 configbup.py -c switchlist.csv
SSH username: mspadmin
SSH Password:
Server username:mspadmin
Server SSH Password:
+++++ 10.100.100.46 +++++
Timed-out reading channel, data not available.
Traceback (most recent call last):
File "configbup.py", line 80, in
main()
File "configbup.py", line 73, in main
ssh_client.connect(REMOTE_SERVER_IP, username=remote_username, password=remote_password)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 446, in connect
passphrase,
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 764, in _auth
raise saved_exception
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/client.py", line 751, in _auth
self._transport.auth_password(username, password)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/transport.py", line 1509, in auth_password
return self.auth_handler.wait_for_response(my_event)
File "/home/tdadmin/.local/share/virtualenvs/sebrupik-MSXbSfC-/lib/python3.6/site-packages/paramiko/auth_handler.py", line 250, in wait_for_response
raise e
paramiko.ssh_exception.AuthenticationException: Authentication failed.
(sebrupik) [tdadmin@nl-ehv-torvalds sebrupik]$
I was wondering about this:
When I use SSH directly to connect to the SRX, I get in using only one set of username/password. Why does it ask for it twice?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.