FTP to FTP IIS server

0

Good morning,

I am using Ubuntu ftp to transfer a file to IIS ftp server. In this ftp server the user names accept the following format:

username|usernameB

due to the isolation of users.

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

ftp username|usernameB@host

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

ftp username%7CusernameB@host

In interactive mode I can access by putting the host first and then the user and password.

Any suggestions? Or application that can install in ubuntu that allows to relativize this in the command line?

grateful

    
asked by anonymous 21.04.2016 / 18:26

1 answer

1

I was able to access, by disconnecting the interactive mode and 'escaping' the pipe character ('|') - used by the IIS ftp server for user in isolation mode. LinuxQuestions.org thread-based response:

#!/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
    
22.04.2016 / 09:38