If scp on Linux box throws error "Administratively disabled." while trying to uploading to or downloading from cisco switch, that indicates scp is not enabled. The simplest way to copy a file to or from a cluster is to use the scp command. Where scp15 is a privilige 15 level user on switch with ip 192.168.13.14 ( WS-C2960-24PC-L) ~]$ scp test-file.txt 100% 19 9.4KB/s 00:00Īnd while logged into linuxserver downloaded a file from the switch ~]$ scp new-test-file.txt Your SSH client configuration file must be correct as explained in the. In another situation while logged into linuxserver uploaded a file to WS-C2960-24PC-L switch This means that they are used through the Command Prompt of your Windows. In case if the command with // does not work on specific cisco ios then command with / can be used. SCP (Secure Copy) and SFTP (SSH File Transfer Protocol) are network protocols. Sending file modes: C0664 19 textfile.txtġ9 bytes copied in 6.808 secs (3 bytes/sec) While logged into cisco switch, I successfully pulled file from Linux scp server to its bootflash: with out using double slash for the file path (the first set of double slash // are still required) copy ~]$ ~]$ ls -a /srv/home/user26/textfile.txt By executing the above command you will move (rename) the file originalfile to newname. The commands which you would need to use are mv (short from move) and cp (short from copy). I ended up on this post while trying to find the solution. Often you will need to move one or more files/folders or copy them to a different location. Syntax scp: Is the command itself and tells the operating system to copy one or more files over a secure shell connection, better known as ssh connection.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |