All Questions
8
questions
1
vote
0
answers
720
views
cat through ssh does not work, it hangs on "debug2: exec request accepted on channel 0" and scp never finishes
I trying to print a file through ssh on CentOS7 but it does not work somehow :
$ time timeout 60s ssh -vvv SERVER-01 cat /etc/yum.repos.d/CentOS-Base.repo
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan ...
0
votes
1
answer
180
views
Are there any good ways of stopping, avoiding or killing "cat bombs" (catting a large file) when using a remote session ssh or tmux?
A common problem is when you have a remote session open (ssh or tmux for example) and you accidentally cat a large file. The screen starts dumping text and you can't kill it. I am guessing those udp ...
0
votes
3
answers
2k
views
perform cat via ssh, send text or file via ssh
Greetings I am making a script to automate the sending of public keys but I cannot send my file or variable through ssh either by "echo or cat"
0
votes
1
answer
168
views
Check success of remote file append via ssh
I like to periodically append some data to a remote file via ssh and remove it locally. Like:
cat some_lines_to_append.txt | ssh [email protected] 'cat >> all_lines_collected.txt'
rm ...
0
votes
1
answer
1k
views
Grep with multiple patterns used on the command
A few days ago I installed Centos 7 on my server and run ssh. Now I want to track logs. Is there anyway to combine cat or tail with grep to have clear failed and accepted login attempts list from a ...
20
votes
7
answers
71k
views
how to copy entire linux root filesystem to new hard drive on with ssh and tar
I need to transfer an entire linux root filesystem off of a failing hard drive onto another computer with an open, available partition. I've pretty sure this involves tar and ssh, but I can't remember ...
6
votes
1
answer
3k
views
Escaping Variable in Cat
I'm trying to write a shell script over ssh via a bash prompt. The shell, however, insists on interpreting any variable I want to write instead of writing it directly to file. For example, cat <<...
1
vote
3
answers
252
views
accidentally concatenate a large file on a remote system
Every once in a while on a computer I'm ssh'd into, I will accidentally type "cat largefile.txt" and my screen will start rushing with text for the next 10 minutes. I'm always working in a screen ...