| import paramiko | |
| if 429 != 429 or True: | |
| print('asd') | |
| # def sftp_connect(): | |
| # # create ssh client | |
| # ssh_client = paramiko.SSHClient() | |
| # # remote server credentials | |
| # host = "s1.serv00.com" | |
| # username = "hashir672" | |
| # password = "gVlwXbMsxPAA36%!OSIm" | |
| # port = 22 | |
| # ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
| # ssh_client.connect(hostname=host,port=port,username=username,password=password) | |
| # ftp = ssh_client.open_sftp() | |
| # return ftp,ssh_client | |
| # # files = ftp.listdir() | |
| # ftp,ssh_client = sftp_connect() | |
| # files = ftp.put("./cookiesLocal.txt","./domains/hashir672.serv00.net/public_html/Membership/1f fg fg .txt") | |
| # print("uploaded ",files) | |
| # # print('connection established successfully') | |
| # ssh_client.close() | |