File size: 786 Bytes
af4a00b
 
1dbf826
 
 
 
 
af4a00b
1dbf826
 
 
 
 
af4a00b
1dbf826
 
 
 
 
 
 
af4a00b
1dbf826
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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()