Visit Our UNIX and Linux User Community


Can't login to Unix using ftp commands


 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Can't login to Unix using ftp commands
# 1  
Old 08-05-2008
Can't login to Unix using ftp commands

Hi.

I have this issue with an ftp command that I can run successfully using command prompt in Windows but when using a file to run the script unix will always return log in error messages.

Here is what I'm doing:
In command prompt I'm running this:
> ftp -s:c:\load_test_file.scr

And my file..."load_test_file.scr" is as simple as:
open 111.1.1.111
user
myuser
mypass
cd /path/path_folder
put c:\filename.csv
quit

Here is the whole output in command prompt:

C:\>ftp -s:c:\load_test_file.scr
ftp> open 111.1.1.111
Connected to 111.1.1.111.
220 <servername> FTP server ready.
User (111.1.1.111Smilienone)):
331 Password required for user.

530 Login incorrect.
Login failed.
ftp> myuser
Invalid command.
ftp> cd /path/path_folder
530 Please login with USER and PASS.
ftp> put c:\filename.csv
530 Please login with USER and PASS.
530 Please login with USER and PASS.
ftp> quit
221 Goodbye.

IS there anything that I may need to fix in my code?

Thanks in advance!

T.

Last edited by teposelo; 08-05-2008 at 07:43 PM.. Reason: to make it better to understand
# 2  
Old 08-05-2008
The correct syntax is

Code:
user username password

# 3  
Old 08-05-2008
Solved

Annihilannic.

The code worked fine Smilie but I also had to add -n (Suppresses auto-login upon initial connection.).
so the call now looks like this
ftp -n -s:c:\load_test_file.scr

Thanks,

T
# 4  
Old 09-15-2008
how to ftp to solaris server thru my notebook via LAN cable

Hi two senior,

I m a newbie for solaris, I encounter a problem when I try to ftp to unix server., step as follow:

window command line:
>
>
>
>ftp <IP address>
connected to <IP address>
220 s4u-60a-sin06 FTP server ready.
User (<IP address>Smilienone)):
Password:
Login failed.
>
>
>



But there is not password for that server, whi it will prompt the user and password?Any idea?Hope senior can tell the solution and reason...

Thanks!!!!
# 5  
Old 09-15-2008
If you want to use anonymous FTP, type anonymous or ftp as the username. You can type anything for the password, the convention is to give your email address.

Previous Thread | Next Thread
Test Your Knowledge in Computers #377
Difficulty: Medium
macOS is UNIX V7 compliant.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to track what Commands run in a login session

Hi I need to track what commands run in login session in solaris whether it is root or any normal users in bash shell. My actual requirement is that when a user (nomal/root) login into the system, whatever commands he run, it should log into file on specified path . I don't require command... (4 Replies)
Discussion started by: hb00
4 Replies

2. Solaris

Run automated bash commands from sh login shell

I use plink.exe to automate remote commands that return data to Windows machines. This works well on newer servers running Red Hat since the commands were developed for bash and the designated user's login shell is bash. I need to also support older servers which are running Solaris 10 but the... (5 Replies)
Discussion started by: randman1
5 Replies

3. Shell Programming and Scripting

Commands not working with ssh remote login

Hi Friends, I am unable to run our application commands on remote server using ssh (passwordless login enabled). But the same command running with telent perl script. please suggest. SSH: C:/bin>ssh -l monitor tl04cp01 exec "/home/monitor/123" /home/monitor/123: viewlog: not found. ... (7 Replies)
Discussion started by: suresh3566
7 Replies

4. Shell Programming and Scripting

Ftp client softwares that will generate UNIX commands

Hi Folks, Please advise for FTP client softwares like winscp we use mostly to transfer the files to other unix box machines but any ftp software which in logs will also generate and show the unix commands parallely for ex if I create a directory graphically through ftp software then it will list... (1 Reply)
Discussion started by: punpun66
1 Replies

5. Shell Programming and Scripting

Login to remote host and execute commands

Hi, i want to write script where it will login into 50 hosts and if login is successful it print message "login to host1 is successful" if not it should print message "Not able to login to host1". once connection to the host is succesful it should fire df command to check filesystem if df is... (3 Replies)
Discussion started by: amru8810
3 Replies

6. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

7. UNIX for Dummies Questions & Answers

Ftp login commands

Hello, I am using ftp on command line. The problem is getting bumped off after 15 minutes of no activity.. I have two options: quit ftp and use the command history of my shell, or stay in ftp and use 'open' command, where I can use the command history saved in the ftp program. Either option... (1 Reply)
Discussion started by: Allasso
1 Replies

8. Solaris

FTP log only shows FTP LOGIN FROM entry?

OS: Solaris 9 Configuration /etc/syslog.conf daemon.debug /etc/inetd.conf ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d Found the ftp.log only generate those entries from other servers/hosts. Can we trace on all ftp entries either from/to the server? ... (6 Replies)
Discussion started by: KhawHL
6 Replies

9. UNIX for Dummies Questions & Answers

unix commands related to ftp of files..

Hi, I am new to unix , I was planning to write a script that will FTP files to destination folder. , Please guide me what are the various networking commands that unix will help in this ftp process..?:confused: (1 Reply)
Discussion started by: rahul125
1 Replies

10. UNIX for Dummies Questions & Answers

run commands before login

What would be the best way to setup for a Linux box to run a few commands before the user logs in? (1 Reply)
Discussion started by: woofie
1 Replies

Featured Tech Videos