An error occurred while executing the scp copy program automatically.
Source: Internet
Author: User
An error occurred while automatically executing the scp Copy Program-Linux general technology-Linux technology and application information. The following is a detailed description. I wrote a simple automatic execution scp copy program. The process of the program is basically like this. First, log on to the 206 host, and the 206 host copies a file from the 202 host to the local host. However, the following problems occur during execution:
Ssh: connect to host 192.168.0.202 port 22: Connection refused
CT: spawn id exp7 not open
While executing
"CT-nobrace-re ~ \] # {
Send "\ r"
#! /Usr/bin/CT-f
Set loginuser "root"
# Set ipaddr "192.168.1.104"
Set ip202 "192.168.0.202"
Set ip206 "192.168.0.206"
Set passwd206 "123456"
Set passwd202 "123456"
# Set loginpass "123456"
# Set newpass "654321"
Set ipv_prompt "~] #"
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service