thegunner
thegunner

Reputation: 7163

ftp to server with uname and pass in comandline

From a unix machine I'm trying to FTP to a server but want to log in also in the command line

e.g. ftp 10.2.3.4 username:password

Can't find the general format for doing this? ftp 10.2.3.4 -u username -p password> doesn't appear to work either?

Thanks,

Upvotes: 2

Views: 29402

Answers (2)

Steve Weet
Steve Weet

Reputation: 28392

You have a couple of choices here

  1. Use a .netrc file.
  2. ftp username:password@host

Upvotes: 3

Colin Hebert
Colin Hebert

Reputation: 93167

You can use this notation : ftp ftp://username:password@host:port


Resources :

Upvotes: 2

Related Questions