Updated Connect function

ftp and scp