![]() ![]() A solution, similarly to what suggested in that post, was to set the LESS variable to -R and leave GIT_PAGER unset, as it originally was. The actual problem was in less and how it outputs ANSI color ESC codes. There are also more sofisticated approaches to run the machine as a windows service, however I found this very simple and I chose it for this reason.Īlthough I was not using a Mac, the solution was in this blog post: that is, setting the GIT_PAGER variable to cat was already solving the problem GIT_PAGER sets which program should be used by git to display for example the diff and log output (default less). VBoxManage setextradata "backlinux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222Then I followed the suggestion of Sebastian Bauer's blog: I installed the ntwind software's hidden start tool ( homepage) and created two one-liner batch files that I use to start and stop the virtual machine. VBoxManage setextradata "backlinux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22 I forwarded the SSH port as described in the virtual box manual (backlinux is the name of my virtual machine): VBoxManage setextradata "backlinux" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP For networking I use the NAT configuration. As HD controller I selected SATA (the default is IDE). ![]() I gave it a little less than the half of my memory and turned on support for AMD-V extensions (as I did also in my host machine BIOS). usr/bin/ssh-agent | sed 's/^echo/#echo/' >! $SSH_ENVĮcho "done: ssh-agent is now running, PID $SSH_AGENT_PID "Īs a virtualization software I installed Sun VirtualBox. If ( $? prompt & ! $?SSH_AGENT_RUNNING ) then Ps $SSH_AGENT_PID > /dev/null & set SSH_AGENT_RUNNING Set SSH_ENV = " $ HOME /.ssh/environment" tcshrc file, only *before* setting the prompt explicitely, as I used it to distinguish interactive sessions from non-interactive ones): Here is it (I added these lines at the bottom of my. I adapted it to use it in tcsh, which I use as a shell. In the github guides there is a script for bash ( ). ssh-add allows you to tell ssh-agent the password.Īs ssh-agent keep running when you log off your session, you may add some lines to your shell startup script, to test if ssh-agent is running, otherwise to start it and ask you the password (via ssh-add). ssh-agent runs as a deamon and remembers the password to your key. Luckily there is a solution: ssh-agent and ssh-add. But if your key file has a password, then you would have to write the password each time, so it wouldn't be much better than using passwords instead of keys in the first time. Otherwise anyone who can steal your key somehow (like accessing your computer physically), can steal your identity. However for security reasons it is strongly reccomended to set a password on the key file. A copy of the public key must be saved in the computer acting as ssh server under ".ssh/authorized_keys", the private key stays only on the client computer. The latter is interesting, as you don't have to write your password each time. While connecting to a server using SSH, you need either to provide a password or to use a public-private key pair to identify yourself. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |