Cisco Cisco ASR 5700 トラブルシューティングガイド

ページ / 2
Contents
Introduction
Problem
Solution
Related Information
Introduction
This document describes the error that occurs in some cases when sFTP (Secure File Transfer)
file transfer from the ASR5500 chassis to a sFTP server fails due to incorrect server configuration
in the SSH (secure shell) configuration file, sshd_config.
Problem
Error occurs when files are transferred from the ASR5k to a SFTP.
[local]ASR5000-2# copy /flash/test sftp://root:cisco123@10.201.251.13:22/localdisk/test
Failure: "FAILED because unable to write destination",
copy /flash/test sftp://root:cisco123@10.201.251.13:22/localdisk/test
The setting in /etc /ssh/sshd_config file:
# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no
If you use FTP protocol, the transfer is successful.
Solution
Out of the two Linux servers in the lab, it was possible to reproduce the issue on one server but
not the other. Only difference was the IP address of the server in the test.
[local]ASR5000-2# copy /flash/test sftp://root:cisco123@10.201.251.5:22/localdisk/test
********************************************************************************
Transferred 22789 bytes in 0.002 seconds (11127.4 KB/sec)
[local]ASR5000-2#
[local]ASR5000-2#
[local]ASR5000-2# copy /flash/test sftp://root:cisco123@10.201.251.13:22/localdisk/test
Failure: "FAILED because unable to write destination",
copy /flash/test sftp://root:cisco123@10.201.251.13:22/localdisk/test [local]ASR5000-2#
While the server settings are reviewed, it was noticed that there was a difference between the
setting of two servers in /etc /ssh/sshd_config file. The working server had this setting:
# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication yes
When this parameter is modified to yes and the service is restarted with the /etc/init.d/ssh
restart command, you can successfully transfer a file using SFTP.
[local]ASR5000-1# copy /flash/test2.cfg sftp://root:cisco123@10.201.251.13/localdisk/test2.cfg
Tuesday January 19 08:11:47 PST 2016