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. 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 A public and a private key are generated. You must provide a file name and a passphrase. OpenSSH comes with a command to do this, ssh-copy-id. In another situation while logged into linuxserver uploaded a file to WS-C2960-24PC-L switch In a terminal window, enter the following command: ssh-keygen -t rsa. It appends your public key to the servers authorized keys. Then it appends your public key to the end of. In case if the command with // does not work on specific cisco ios then command with / can be used. ssh/authorizedkeys and set their permissions appropriately if they dont exist. Sending file modes: C0664 19 textfile.txtġ9 bytes copied in 6.808 secs (3 bytes/sec) Would you mind selecting a preferred answer for this - it's your job. Got things to work using alec-the-geek's answer. Wolfer at 17:36 3 For me, the ssh:// created a folder, instead of using a remote protocol. 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 dlsa 3,402 2 17 17 I don't think running git clone -bare will do what you think it will do. Enter file in which to save the key (/root/.ssh/idrsa): Created directory '/root/.ssh'.host1 ssh-keygen Generating public/private rsa key pair. Login to host1 and issue the following command to generate the SSH key. I ended up on this post while trying to find the solution. The table below might be a clearer way of presenting this scenario.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |