• 11

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Remove remote file using sftp and private key (Solaris)

I have a Solaris server and I need to remove a file at remote machine using sftp (I can't use ssh). Is it possible to pass a private key for auth to this command (I don't see -i parameter in Solaris) and how to remove this file? Thanks.

You can use the -o option to pass SSH options. Eg

sftp -oIdentityFile=/path/to/identity user@host

This will connect and start the interactive SFTP session. Enter the commands following the sftp> prompt:

sftp> rm /path/to/file
Removing /path/to/file
sftp> bye

And you're done!

  • 0
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags