Update connect-ftpsession function