문제

I want to develop a command line to login the ftp server with username & password. The script would be run on AIX 6.1, but now I was stuck.
I have searched on google and got some solutions, but no one works. See commands I have tried below:

    ftp ftp://username:password@server  
    ftp username:password@server  
    ftp server /user:username /password:password  
    ftp USER username PASS password

Could you please tell me the correct command?
Thanks.

도움이 되었습니까?

해결책

Create a text file in your home directory named .netrc containing:

machine myserver.example.com login myusername password mypassword

However it would be more secure to set up ssl and use scp. There's little reason to use an insecure protocol like ftp.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top