cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
2076
Views
0
Helpful
4
Replies

Error: (stdin: is not a tty) when I try to copy scp from Linux Server to MDS Cisco v2.1

I set up my SSH key in the Cisco MDS, and now I'm trying to copy a file with SCP from a Linux server to a Cisco MDS switch with version 2.1. But also received the following error:

$ scp user @ test IP-SWITCH: // test
MDS Switch
stdin: is not a tty

Cmd parse error.

Could you help me?

4 Replies 4

Walter Dey
VIP Alumni
VIP Alumni

http://www.cisco.com/en/US/docs/storage/san_switches/mds9000/sw/rel_1_x/1_3/cookbook/CB_swmgt.html

To use SCP (Secure copy) as the transfer mechanism, the syntax is as follows:

scp:[//[username@]server][/path]

To copy /etc/hosts from 172.22.36.10 using user1as the user and the destination filename hosts.txt, enter the following command:

switch# copy scp://user1@172.22.36.10/etc/hosts bootflash:hosts.txt

user1@172.22.36.10's password:

hosts                100% |*****************************|  2035    00:00

Walter,

Thanks for the reply, but the problem that occurs is another.

1) I use successfully scp when I copy from within the switch to a server.

SWITCH# copy scp://user@200.185.2.10/tmp/teste2 teste2
user@200.185.2.10's password:
teste2                                                                                                                                100%    7     0.0KB/s   00:00
SWITCH#

 

2) However occur error when I try to copy a file to a server in switch using scp.

 $ scp teste2 user@172.16.192.52:bootflash
MDS Switch
stdin: is not a tty

Cmd parse error.

I'm confused !

1) you are on the MDS and copy a file from the Server 200.185.2.10 to MDS ? correct ?

2) you copy a file from Server to MDS ?

it seems to be a Parser error; how can the MDS know, which protocol should be used ? ftp, tftp, scp,...

did you try:  scp teste2 user@172.16.192.52 ?

Walter,

Being on a Linux server, when I copy a file to an MDS switch, the error occurs below. When I copy to another MDS switch the copy is successful. In both cases using scp.

Review Cisco Networking for a $25 gift card