VanDyke Software Forums

VanDyke Software Forums (
-   General (
-   -   SSH Commands (

stuarttunstall 03-22-2016 03:52 PM

SSH Commands

I have been testing SecureCRT with a few SSH commands to view logs on my server.. As a rule I have never really got "into" what I can do with SSH apart from backing up my database..

Now it looks like I will be purchasing SecureCRT I wanted to do more.. for instance I have just run this script

tail -f /var/log/exim_mainlog

Once this is running how to I stop this to go back to the prompt ready for the next script?

I am some what a novice were this is concerned..

Also do you know any useful scripts I can run ;)


bgagnon 03-22-2016 04:05 PM

Hi Stuart,

Usually Ctrl+C is the combination that will interrupt output from the remote device. It's based on what the configuration is on the remote system. If you run the command stty -a, you should see output similar to:


speed 38400 baud; rows 30; columns 73; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt echoctl echoke
It's the intr = that shows the interrupt combination. More info on stty can be found by running the command man stty. See, there are two more commands you can run. :)


Also do you know any useful scripts I can run ;)
But I am not really sure what you mean by the above. These are just commands and they would just be geared to whatever you need to accomplish on the remote system (cd, ls -al, etc.)

What sort of tasks do you want to accomplish on the remote system?

stuarttunstall 03-23-2016 02:39 PM

Thank you... Control + c did the trick...

What I was looking at was a list of SSH command I can run to view stuff on the server... Although have had my server for 10 years, running my own vehicle enthusiast website I have only ever used Putty to do my back up of my database.. .

As I am almost certain to pay for SecureCRT now I thought I would get more out of it :) My sever host have given me some useful commands so far but the more the better...

I have searched for websites but can't really find any...

Thanks again for all your help...


bgagnon 03-23-2016 02:46 PM

Hi Stuart,

I cannot really answer that. Speaking of vehicles, SecureCRT is just the vehicle that connects you to the remote server. :)

Your best bet would be to run internet searches based on the OS of the remote system you are connecting to and they may have some tutorials for you.

Here are some general URLs:

stuarttunstall 03-23-2016 02:50 PM

Thank you : will take a look..

stuarttunstall 03-23-2016 03:07 PM

After all this excellent support I think I should buy the full licence...Lol


I have run the following... to view apache logs... I started with "error log"

I first typed...

cd /usr/local/apache/logs/


vim error_log

which gave me a list...

How do I then exit that back to the prompt?

I did type exit but that did nothing..

Sorry for the stupid questions...I WILL learn Lol

bgagnon 03-23-2016 03:14 PM

Hello Stuart,

vim is an editing application you are invoking on the remote system. If you type "man vim" you will get the man (manual) pages for that application.

This is outside the scope of SecureCRT support, but if you want to exit without saving any changes, hit ESC a few times, which should put your cursor to the bottom of the editing window, then type :q (quit). If you want to save any changes you made, it would be :wq (write/quit).

stuarttunstall 03-23-2016 03:15 PM

Thank you, really appreciate it :)

Already know a bit more than I did a couple of hours ago :)

All times are GMT -6. The time now is 02:02 AM.