Screen has its own scroll buffer, as it is a terminal multiplexer and has to deal with several buffers.
Maybe there's a better way, but I'm used to scrolling using the "copy mode" (which you can use to copy text using screen itself, although that requires the paste command too):
Hit your screen prefix combination (C-a / control+A by default), then hit ...
VirtualBox will create a private network (10.0.2.x) which will be connected to your host network using NAT. (Unless configured otherwise.)
This means that you cannot directly access any host of the private network from the host network. To do so, you need some port forwarding. In the network preferences of your VM you can, for example, configure VirtualBox ...
Using the screen buffer as pointed out by njsg is a good solution. You can also disable the alternate text buffer in the xterm termcap info inside screen. When disabled you can use the scroll bars (and mouse wheel) to scroll up and down.
Add this to your ~/.screenrc.
# Enable mouse scrolling and scroll bar history scrolling
termcapinfo xterm* ti@:te@
Using the GUI
See this SO Q&A on how to do exactly what you want, titled: Convert PEM to PPK file format.
Download your .pem from AWS
Open PuTTYgen, select Type of key to generate as: SSH-2 RSA
Click "Load" on the right side about 3/4 down
Set the file type to *.*
Browse to, and Open your .pem file
PuTTY will auto-detect everything it needs, ...
I found Patrick's advice to be correct, although Chris's answer got me on the right track. Use quotes and then you don't need the backslash before the asterisk.
scp 'SERVERNAME:/tmp/file_num\*' .
scp: /tmp/file_num*.csv: No such file or directory
scp 'SERVERNAME:/tmp/file_num*' .
judgments_for_job_171642.csv 100% 32KB 32.0KB/s 00:00
Mouse scrolling and elevators will work if you enable them in your .screenrc.
Q: My xterm scrollbar does not work with screen.
A: The problem is that xterm will not allow scrolling if the alternate text buffer is selected. The standard definitions of the termcap initialize capabilities ti and te switch to and from the alternate text ...
Enable SSH keep-alives by changing the following setting to a positive value:
A value of 300 should suffice in most cases. (5 minutes.) This causes PuTTY to send SSH null packets to the remote host periodically, so that the session doesn't time out.
Note that we don't want the SO_KEEPALIVE option lower on that page. That is a much lower-level mechanism ...
OpenSSH is the de facto standard implementation of the SSH protocol. If PuTTY and OpenSSH differ, PuTTY is the one that's incompatible.
If you generate a key with OpenSSH using ssh-keygen with the default options, it will work with virtually every server out there. A server that doesn't accept such a key would be antique, using a different implementation of ...
I wanted to use putty to connect to my ubuntu on virtual box (comfort reasons, the VB is just weird. I can't work unless it is on a proper terminal).
Make sure ssh client is installed on your Linux. If not, install it sudo apt install ssh.
Power off the OS.
Now on your VB go to Settings -> Network -> on Adapter 1 choose Host-only adapter->...
Use the PSCP tool from the putty download page:
PSCP is the putty version of scp which is a cp (copy) over ssh command.
PSCP needs to be installed on your windows computer (just downloaded, really, there is no install process. In the Packaged Files section, pscp.exe is already included). ...
after you reattach a ctrl-a F runs the "fit" command to resize the current window. if you reattach using the -A option it should resize all windows when you reattach. Are there others still attached to the screen session when you are attaching? For instance, are you having to use -x to reattach instead of -r? you can detach others when you reattach with "...
You have two main choices:
Run the command with nohup. This will disassociate it from your session and let it continue running after you disconnect:
Note that the stdout of the command will be appended to a file called nohup.out unless you redirect it (nohup pythonScript.py > outfile).
Use a screen multiplexer like tmux. This will ...
Try using the ssh connection termination escape sequence.
In the ssh session, enter ~. (tilde dot). You won't see the characters when you type them, but the session will terminate immediately.
$ Connection to me.myhost.com closed.
From man 1 ssh
The supported escapes (assuming the default ‘~’) are:
~^Z Background ssh.
All these answers addressed how to navigate within a screen session, but there is a built-in functionality in screen command to store everything in a file through the -L argument according to the manual which reads:
-L tells screen to turn on automatic output logging for the windows.
so you can do:
screen -L -S testscreen
and it will create a file ...
Most Linux distros have putty available for Linux. You could install putty on the Linux side and use puttygen to convert the .ppk files to the regular ssh style key files (called PEM files - even though they don't get a .pem in the file name).
puttygen id_dsa.ppk -O private-openssh -o id_dsa
NOTE: You can also use puttygen to import ssh style PEM files ...
First you need to decide if your VM connected to your host machine via a bridge connection or via a NAT, but ether way you'll need to put the VM IP address in putty to be able to connect to ip, in the VM terminal run this command to show you the machine IP address
(and no 127.0.0.1 is not the machine IP address)
VM # ip addr show
1: lo: <LOOPBACK,UP,...
Another thing to check is if your system is setting the environment variable TMOUT. To check this you can just do:
env | grep TMOUT
If it is set, you could change it or unset it. To change the value:
Where the number is the number of seconds until you get logged out. Otherwise unset it to turn off the feature:
If you are using GNU/Linux, you don't have to use Putty. That part of the tutorial is geared towards Windows users.
Just set your .pem file permissions to r-- by doing chmod 400 mykey.pem then you can pass it straight to ssh :
ssh -i mykey.pem firstname.lastname@example.org
My resolution was similar to Roman T's however I needed to add a few extra steps. In my case I had Ubuntu Server 14 VM running on a Windows 8 Desktop in Windows 2008 domain. If I tried NAT or Bridge I could access the Internet but couldn't connect via SSH.
If I tried Host Only Adapter then that would allow me to SSH to machine but couldn't access the ...
the whitespace between the two is actually 5 spaces.
No, it's not. Not in the output of echo or printf.
$ echo -e 'foo\tbar' | od -c
0000000 f o o \t b a r \n
What is the correct way to force tab being printed as tab, so I can select the output and copy it to somewhere else, with tabs?
This is a different issue. It's not about the ...
They both store an "RSA key pair for version 2 of the SSH protocol" and can be converted interchangeably; however, regarding the actual stored format difference:
The advantages of the PuTTY key format are:
Public half of key is stored in plaintext. OpenSSH'...
To get X11 forwarding working I needed to execute yum install xauth. At that point Terminator didn't render the console font properly. I was not particularly concerned about having a minimal set of fonts so I did yum -y groupinstall fonts and restarted terminator. The fonts rendered properly.
The following instructions worked with Ubuntu 14.04 and Oracle VirtualBox 4.3.30.
Do this in VirtualBox:
Right-click your virtual machine, select "Settings", and then select "Network".
Next to "Attached to", select "Host-only Adapter". As a side note, "Bridged Adapter" will also work, check the VirtualBox documentation for more details about each option.
You can specify the color to use in ansible (at least you can with ansible 22.214.171.124).
Open ansible.cfg and go to the section that says [colors]
You should see something like this
#highlight = white
#verbose = blue
verbose = green
#warn = bright purple
#error = red
#debug = dark gray
#deprecate = purple
#skip = cyan
#unreachable = red
#ok = green
Simple answer: No, there is no sure way. Terminal applications often will report available features when queried with the right escape sequences but this is sometimes not enough to detect which application is used, and it can very easily be faked.
In general, the actual terminal application used should not matter, so maybe you should rephrase your question ...
According to this page you can convert your dsa keys to a format that PuTTY will accept with a PuTTY tool, PuTTY Key Generator.
There is more detail on this page which describes importing your RSA or DSA key into PuTTY format. Essentially, you just select 'Import Key' from the 'Conversions' menu and navigate to where the key is stored on your machine.
PuTTY is a terminal emulator (able to run shells, which in turn run commands), while the usual SSH application is a shell (not a terminal emulator). PuTTY has been ported to Unix (and Unix-like) systems as pterm.
scp is a special case: a program use for copying a few files via an ssh connection. PuTTY on Windows has a similar program, but there's no need ...