Timothy M Butterworth wrote: 
> On Thu, Apr 10, 2025 at 7:14 PM Dan Ritter <d...@randomstring.org> wrote:
> 
> > Timothy M Butterworth wrote:
> > > All,
> > >
> > > I am having problems writing to atftpd. I keep getting a permission
> > denied
> > > error.
> > >
> > > Switch#$.SED.bin tftp://
> > 169.254.180.65/c3550-ipservicesk9-mz.122-25.SED.bin
> > >
> > >
> > > Address or name of remote host [169.254.180.65]?
> > > Destination filename [c3550-ipservicesk9-mz.122-25.SED.bin]?
> > > !
> > > TFTP: error code 2 received - Access violation
> > >
> > > %Error writing tftp://
> > 169.254.180.65/c3550-ipservicesk9-mz.122-25.SED.bin
> > > (Permission denied)..
> >
> > TFTP is of very limited use; it's normally used only to retrieve
> > smallish boot files.
> >
> > I'm pretty sure atftpd does not allow files to be written at
> > all.
> >
> > The standard tftpd defaults to the same behavior, but can be
> > passed a -c flag to allow a file to be written. I wouldn't
> > recommend it.
> >
> > Why are you trying to do this? Normally a client requests a file
> > from the tftpd server; it doesn't push anything.
> >
> 
> I am trying to copy a Cisco IOS image from a switch so I can push it to
> another switch.
> 
> I tried testing atftpd with the atftp client as show below:
> 
> tmb@debian-hp:~$ atftp
> tftp> connect 127.0.0.1
> tftp> put atftp-test.txt
> tftp: error received from server <Access violation>
> tftp: aborting

Yeah, don't do that.

Use the tftp client from your debian box to pull the image from
the switch to the debian box -- in your home or other definitely
writable location.

Move the image to your tftpd's directory.

Pull the image to the switch via the switch's tftp client.

-dsr-

Reply via email to