The use of SSH in Python requires openssh, and OpenSSH relies on the Paramiko module, and the Paramiko module relies on the Pycrypto module, so to use SSH in Python, you need to first install the module order: Pycrypto- > ECDSA, Paramiko
1, installation Pycrypto
Installing this is cumbersome and requires local compilation, and there is a lot of configuration for VS or GCC, and it's not necessarily possible
Ubuntu installation SSH
sudo apt-get install Openssh-server2. start the Shh serviceSudo/etc/init.d/ssh start3.ssh common commands
Downloading files from the server
SCP [Email protected]:/path/filename/var/www/local_dir (Local directory)For example SCP [email protected]:/var/www/test.txt to download/
Using SSH to transfer files between Linux and Linux,linux and WindowsTransferring files between Linux and Linux:SCP file [email protected]: Document Address Example:SCP Abc.txt [Email protected]:/home/endall/abc.txtTransferring files between Windows and Linux:The author uses Putty's built-in PSCP. Other such as SSH Secure File Transfer ClientFirst in the Win DOS,
Use SSH to transfer files between linux and linux, and between linux and windows-Linux Enterprise Application-Linux server application information. For more information, see the following. Transfer files between linux and linux:
Scp file username @ hostIP: file address example:
Scp abc.txt endall @ IP:/home/endall/abc.txt
Transfer files between windows and
directive: SSH [email protected]Case: wangmingdemacbook-pro:~ xxxxxxxxxx$ ssh [email protected]The authenticity of host ' xxxx.net (xxx.xxx.xxx.xxx) ' can ' t be established.RSA key fingerprint is 13:82:21:f3:47:ac:15:44:f5:d0:c4:65:a0:5c:cc:06.Is you sure want to continue connecting (yes/no)? YesWarning:permanently added ' xxxx.net (xxx.xxx.xxx.xxx) ' (RSA) to t
To implement Windows under Connect Ubuntu requires the following software to be installed:1. Installing WINSCP under Windows2. Install OpenSSH Server under UbuntuYou can use the command line to install OpenSSH server:sudo apt-get Install Openssh-serverUbuntu then automatically downloads and installs OpenSSH server and resolves all dependencies together.We can also search for "Openssh-server" via Ubuntu soft
When you remotely log on to Ubuntu with putty, the network error: Connection refused solution is displayed.
On Ubuntu, choose system> preference> Remote Desktop> allow others to view your desktop.
Enable the SSH service on Ubuntu:
Zhang @ Zhang-desktop :~ $ Sudo apt-Get install OpenSSH-Server[Sudo] password for Zhang:
After xming is installed in windows,
As we all know, Linux is higher than the safety factor of windows, but it is a good habit to update it frequently (at least recently, a lot of security vulnerabilities about SSL deserve attention!). , but when running Apt-get update refresh source under Ubuntu and Debian, you often encounter the problem of "There is no public key available for the following
specified window
You must be familiar with the Printscreen keys on your keyboard, and you can use it to crawl content on the Windows desktop, including its open windows, onto the system's clipboard. However, pressing the Printscreen key to copy the entire screen image to the Clipboard, sometimes we do not need all the screen content, and only need a window, if t
In a file or folder that you want to get all permissions on, right-click, and a key to get Super Administrator privileges, you can quickly get the highest privileges in the normal administrator account.
After you get the permissions, run the program just as you would in the
Previously set once, and then forget, today after the password to find the command line clone to verify the identity failure, reset the public key, record1. Because the public key was previously set, the git command can be executed without entering a username password. Now that the password has changed, cancel the public key, the simplest is to delete the public
On the internet to find a few examples of traversing the serial port, either the code is not complete, or there is a bug, such as reading the serial number is more than 10.After my finishing, now share the final code, VS2008 under the compilation.This method is also useful for traversing Windows power-on startup items with just a few modifications.void Cenumportdlg::enumport (void) {HKEY HKEY; LPCTSTR lpsubkey= "hardware\\devicemap\\serialcomm\\"; if
In the Win7, the number of combination shortcuts is more and more, clever use of combination of shortcut keys, we will get the effect of less effort, the following call everyone how clever make combination bar ...
1, win+ up and down direction key:
Resizing the program window is an often-encountered operation, especially the switch between the default window and the maximized. Before
For people who have used windows, few people are unaware of the Ctrl+alt+del key combination, especially when using a frequently frozen windows9x, which is a key combination of emergency exits specifically for system security. VC Knowledge Base Online magazine 11th, Ac952_z_cn wrote in his personal column about this article: "How to block Ctrl+alt+del under
I. Partition preparation II. File preparation III. Boot preparation IV. Start installation v. Rewrite mbr 6. After the installation is complete this article only describes the key points of Ubuntu Hard Drive boot and install Windows 7. For more details, see the situation. I. Partition preparation command line partition tool: fdisk command line formatting tool: mkfsmkfs. ntfs this tool does not come with Ubu
The possibility of misoperation in Win7 causes some file directories to have administrator privileges to remove or change, and therefore require administrator privileges. However, in the newly installed system, there is no "Get administrator rights" menu item in the right key, so you need to add it manually:
By creating a new file with administrator permissions. Reg, you can use the editor to open and copy
The recent project moved to the company's "GitHub" above the original SVN ant release script to change, so Baidu ant get git way too little, Windows platform is not so engaged for two days, today finally a bit of results to share to everyone.1. Also install git on the server, configure the GIT environment, add C:\Program Files (x86) \git\cmd in path (your path may be different, is the git\cmd path)2.GitHub
1 used the official template, location in Https://www.zabbix.org/wiki/Zabbix_Templates, feel a bit more, and after the addition of {$SQL 1} is still no such service, so decided to write a bit of custom, By the way, the main reference online this eldest brother, http://mayulin.blog.51cto.com/1628315/514509/2 Windows Add Monitoring item generally with PerfCounter, this is a counter, used to monitor the performance parameters of the system, give me the o
make a key plate
The "Syskey" System Password Setup program also has the ability to generate a key disk. Only users who have a key disk can enter Windows Xp, just like some anti-virus software need a key when anti-virus, and a more self-protection function.
In the "Startup
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.