Getting SSHException: SSH session not active while uploading file on SFTP server

I have followed below link but its not working. Basically I have to connect to SFTP server and upload file there in the one of folder.

I am trying to connect with username and keyfile but I am getting EOF file error
My Keyfile looks below
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEApSxYmZNnp+sXB6FKeAaxCNQhWSWVqpAKgGndlC6/D9gXXA1H
PXsKumZ6KmCh96oQ3XENo3Tfg==
-----END RSA PRIVATE KEY-----

I tried to install and uninstall below packages -
pip uninstall paramiko
pip install paramiko-ng --user

My Current Package Versions are -
paramiko==3.0.0
paramiko-ng==2.8.10
cryptography==36.0.2

I am getting EOF file error while connecting using keyfile

SSH logs

DEB [20230303-15:33:32.956] thr=2 paramiko.transport: Adding ssh-rsa host key for mydomian.in: b’b2dee68b81745535bb5bff4a22ca8cf0’
DEB [20230303-15:33:32.994] thr=2 paramiko.transport: Trying discovered key b’a582af5a19658673823d3205ff383bb2’ in C:/WinScpConnection/SDB_29AAAPI3182T000_SSH-Key_Vayana.txt
DEB [20230303-15:33:33.006] thr=1 paramiko.transport: userauth is OK
DEB [20230303-15:33:33.006] thr=1 paramiko.transport: Finalizing pubkey algorithm for key of type ‘ssh-rsa’
DEB [20230303-15:33:33.007] thr=1 paramiko.transport: Our pubkey algorithm list: [‘rsa-sha2-512’, ‘rsa-sha2-256’, ‘ssh-rsa’]
DEB [20230303-15:33:33.007] thr=1 paramiko.transport: Server-side algorithm list: [‘ssh-ed25519’, ‘sk-ssh-ed25519@openssh.com’, ‘ssh-rsa’, ‘rsa-sha2-256’, ‘rsa-sha2-512’, ‘ssh-dss’, ‘ecdsa-sha2-nistp256’, ‘ecdsa-sha2-nistp384’, ‘ecdsa-sha2-nistp521’, ‘sk-ecdsa-sha2-nistp256@openssh.com’, ‘webauthn-sk-ecdsa-sha2-nistp256@openssh.com’]
DEB [20230303-15:33:33.007] thr=1 paramiko.transport: Agreed upon ‘rsa-sha2-512’ pubkey algorithm
INF [20230303-15:33:33.056] thr=1 paramiko.transport: Authentication (publickey) successful!
DEB [20230303-15:33:33.057] thr=2 paramiko.transport: [chan 0] Max packet in: 32768 bytes
DEB [20230303-15:33:33.071] thr=1 paramiko.transport: Received global request “hostkeys-00@openssh.com
DEB [20230303-15:33:33.072] thr=1 paramiko.transport: Rejecting “hostkeys-00@openssh.com” global request from server.
DEB [20230303-15:33:33.073] thr=1 paramiko.transport: Debug msg: b’SFTP: key options: agent-forwarding port-forwarding pty user-rc x11-forwarding’
DEB [20230303-15:33:33.120] thr=1 paramiko.transport: [chan 0] Max packet out: 32768 bytes
DEB [20230303-15:33:33.121] thr=1 paramiko.transport: Secsh channel 0 opened.
DEB [20230303-15:33:33.129] thr=1 paramiko.transport: EOF in transport thread

robot html logs looks below

Thanks in Advance please help