copy with username password
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 05:11 AM - edited 03-03-2019 01:38 AM
looking in the manual I should be able to :
copy system:running-config ftp:[[[//[username[:password]@]location]/directory]/filename]
i.e.
copy system:running-config ftp://anonymous:anonymous@101.101.101.101/switches/mensa.cfg
Password:
User anonymous:anonymous cannot log in.
Login failed.
Please login with USER and PASS.
Please login with USER and PASS.
This command work when I put in the username and enter the password manually but just doesn't like the password part
I'm trying to schedule this so don't want any interaction and just pass the usercode and password...
It also has to be ftp I use.
Can anyone help ?
Much appreciated
Gordon
- Labels:
-
Other Networking
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 05:25 AM
Hi Gordon,
One option is to configure a default FTP username and password using the following in config mode:
ip ftp username
ip ftp password
Then, omit the username and password from your 'copy' command... It should then use these default details...
Hope that helps - pls rate posts that help.
Regards,
Paresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 06:23 AM
sorry - I should of put that in my first post...
I tried the ip ftp username and password but it didn't like the commands. Is there somethign else I'm missing that I ned to do first ?
Here's the error I'm getting when trying ip ftp username
mensa# config t
Enter configuration commands, one per line. End with CNTL/Z.
mensa(config)# ip ftp username
^
% invalid command detected at '^' marker.
mensa(config)# ip ftp ?
% invalid command
mensa(config)# ip ?
access-list Configure ip access list
default-gateway Configure ip default gateway
default-network Configure ip default network
domain-list Add additional domain names
domain-lookup Enable/Disable DNS
domain-name Specify default domain name
name-server Specify nameserver address
route Configure static routing
routing Enable ip routing
tcp Enable ip tcp path-mtu-discovery
mensa(config)# ip
I can ftp the file no problem using anonymous username/password when prompted, I'm just trying to pass that info in without being prompted.
Thanks
Will rate the posts once I get to the botto of this ;-)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 05:28 AM
Hi
The possible cause here may be you havent configured / enabled anonymous access on the FTP server.
will suggest to configure the usernamd and password for the FTP access in the router and try copying the file to the FTP server.
you can make use of ip ftp username and ip ftp password commands followed by the credentials which you configure in the ftp server.
once you are done with that you can simply execute the copy command without mentioning the hyperlink.
check this link for more info on the same..
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3750/12220se/3750scg/swiosfs.htm#wp1006919
regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 05:30 AM
Gordon
I understand from your posting that you are trying to use FTP to copy a config file. It is clear that you try to set it up for anonymous FTP and it fails. I am not clear when you say "This command work when I put in the username and enter the password manually" whether you are still trying anonymous FTP or whether you are putting in an actual user name and password. Can you help us understand what you are using for name and password when you enter them interactively?
HTH
Rick
Rick

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2006 05:31 AM
Hello Gordon,
I think you have to define the FTP username and password on the router first, like in the configuration example below:
Configure the FTP username and password.
Mensa#config terminal
Mensa(config)#ip ftp username cisco
Mensa(config)#ip ftp password cisco123
Mensa(config)#end
Mensa#
Copy the configuration to the FTP server.
Mensa#copy running-config ftp:
Address or name of remote host []? 101.101.101.101
Destination filename [mensa-confg]?
mensa.cfg
Writing mensa.cfg !
1030 bytes copied in 3.341 secs (308 bytes/sec)
Mensa#
Can you try this and see if that works for you ?
Regards,
GP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2006 03:23 PM
Hi Gordon,
Maybe you've discounted this already but why don't you just use TFTP in the absence of a workable solution for FTP. YOu will not have any password issues with TFTP.
Paresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2006 01:40 AM
Thanks for your reply - unfortunately, the server I have to copy them to has to be ftp and can't tftp it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 05:21 PM
this is because your password is more than 15 char, this is a bug in the old Cisco version
