On Fri, Apr 11, 2025 at 2:12 AM Titus Newswanger <[email protected]> wrote:
>
> On 4/10/25 18:49, Timothy M Butterworth wrote:
>
>
> I am trying to copy a Cisco IOS image from a switch so I can push it to
> another switch.
>
> Sounds like the type of application where I tend to use scp. Would that do
> the job? Or maybe I misunderstood your question.
>
I was able to copy the switch software to my desktop using PuTTY's SCP
tool. openSSH in debian was not able to work due to non-supported crypto. I
was able to get SSH working with the below commands in .ssh/config:
tmb@debian-hp:~$ cat ./.ssh/config
host 169.254.180.1
KexAlgorithms +diffie-hellman-group1-sha1
HostKeyAlgorithms +ssh-rsa
Ciphers +aes128-cbc
I was able to transfer the software to the other switch successfully using
TFTP. The switch that needed to be upgraded also did not support crypto. So
I could not just SCP directly from one switch to the other. What should
have been easy ended up taking two hours to complete. I also tried setting
up a FTP server and I could not get FTP to work either. Anyway everything
is working now.
Thanks for your help
Tim
> needs ssh access on remote device for this to work
>
> push a file from cwd to 169.254.180.65:
>
> me@debian:~$ scp myfile.bin [email protected]:/home/me/myfile.bin
>
> pull a file from 169.254.180.65 to cwd:
>
> me@debian:~$ scp [email protected]:/home/me/myfile.bin myfile.bin
>
>
>
> --
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
> ⠈⠳⣄⠀⠀
>
> --
>
> Titus Newswanger
> Curtiss WI
>
>
--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/
⠈⠳⣄⠀⠀