what is alternative for SITE command of ftp in sftp [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am trying to connect to a mainframe from linux server using sftp command and execute a SITE command and transfer file to mainframe, but it is failing and showing Invalid command.
I am using batch operation mode as sftp -b $batch_file user#remote_user.

There is no equivalent of FTP's SITE command in SFTP. SFTP uses a binary format for its protocol messages, and uses specific request numbers (or IDs) to indicate the desired operation. And SFTP does not define any request number/ID for "execute this string as a command". SSH can be used for that sort of thing, but not SFTP.

Related

How to parse lines from a file on a FTP server without downloading it [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to parse a line from large files on a FTP server without downloading them, using Linux command line.
Something like this comes to mind:
wget <ftp_file> | grep <something_from_a_line>
Is there a way to do this?
Reading a remote file from a client machine implies that you download it (explicitly or implicitly). Otherwise you must find some way to connect onto the server and read the file locally on the server.

How to use samba in Linux Fedora 26 to mount a share folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm using samba in Linux Fedora 26 to mount a share folder, but it is showing some error which is mentioned below:
The Command I used is:
mount_smbfs -I 192.168.1.10 "//Mohamed#gworks-developer-pc/smbtest1" /mnt/local_share
And I get the following error:
bash: mount_smbfs: command not found
I am attaching error Image Samba mount point for reference.
How to solve the issue, Any idea.....?
Use cifs instead. Take a look at this link.

Detect incoming ssh connection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I'm working on a network with many Linux machines.
In one of them I have a file that I suspect was pushed by another machine.
The machines can access each other using ssh connections.
Is there anyway I can tell which machine pushed the file?
I tried looking for ssh logs but the /var/log/secure/ directory doesn't exist.
Depending on the distro and your logging settings, you may have some luck with /log/auth.
Try grep sshd /var/log/auth.log
Depends on your distro, you can check following files from your distro.
/var/log/secure
/var/log/auth.log
/var/log/syslog
/var/log/daemon.log

Functionality of write command in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Suppose I'm using the write command to send messages to another host on the server. Can the root user or any other user get to know that we are interacting?
This can easily be done by any user that can capture packets on the interface (including root) and any intermediary devices. Moreover, root could in theory install additional mechanisms to hijack/inspect traffic.

run a program on linux using data from another computer [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have some big data on a computer A.
Is it possible to run a program on another computer B using this data (using ssh or something?).
Of course it is possible. There are endless possibilities for working with data on a remote computer. Assuming that NFS and Samba are not available a few ways you can use ssh:
fish scp sshfs or sftp.
e.g.
scp user#host:/wrong/places/* /proc/self/fd/1 | grep love

Resources