FTP to FTP IIS server

Asked

Viewed 39 times

0

Good day,

I am using Ubuntu ftp to transfer a file to IIS ftp server. On this ftp server usernames accept the following format:

username|usernameB

due to user isolation.

The following command does not work due to pipe - |.

ftp username|usernameB@host

I tried to escape the name in various ways, for example:

ftp username%7CusernameB@host

in interactive mode I can access by placing the host first and then the user and password.

Any suggestions? Or an application you can install in Ubuntu that allows you to link this to the command line?

grateful

1 answer

1

I was able to access by turning off the interactive mode and 'Escaping' the pipe character ('|') - used by the IIS ftp server for user in isolation mode. Thread-based response from Linuxquestions.org:

#!/bin/bash

HOST=a.b.c
USER=jenkins.a.b.c\|jenkins
PASS=xxxxxxxxx

# -i turns off interactive mode

ftp -inv $HOST << EOF

user $USER $PASS

.
.
.
ftp operations (ex. cd /folder/folder)
.
.
.

bye
EOF

Browser other questions tagged

You are not signed in. Login or sign up in order to post.