I try to connect SFTP for back up but cyberpanel gives error below. I can connect SFTP fine with filezilla but not cyberpanel. What I need to do get connection work?
Operation Failed!
/root/.ssh/known_hosts:1: invalid line
/root/.ssh/known_hosts is not a valid known_hosts file.
Not replacing existing known_hosts file because of errors
End Of File (EOF). Exception style platform.
command: /usr/bin/ssh
args: [’/usr/bin/ssh’, ‘-o’, ‘StrictHostKeyChecking=no’, ‘-p’, ‘22’, ‘sftp@???.???.???.??’, ‘mkdir ~/.ssh || rm -f ~/.ssh/temp && rm -f ~/.ssh/authorized_temp && cp ~/.ssh/authorized_keys ~/.ssh/temp || chmod 700 ~/.ssh || chmod g-w ~’]
buffer (last 100 chars): b’’
before (last 100 chars): b’ssh: connect to host ???.1??1??.?? port 22: Connection refused\r\r\n’
after:
match: None
match_index: None
exitstatus: None
flag_eof: True
pid: 2661219
child_fd: 5
closed: False
timeout: 3
delimiter:
logfile: None
logfile_read: None
logfile_send: None
maxread: 2000
ignorecase: False