Monday, 4 February 2019

Automate login via ssh

Generate a passphrase less SSH key and push it to your PC.

$ ssh-keygen -t rsa -b 2048
$ ssh-copy-id id@server
$ ssh id@server

Use sudo without password per USER

$ sudo visudo

Enter the following the end of the file:

<username> ALL=(ALL) NOPASSWD: ALL

Comment:
<username>: a user that exists under /home/

e.g.:
SamplePista ALL=(ALL) NOPASSWD: ALL

With this setting OS won't ask password for 'SamplePista' when execute command via sudo.

Another useful debug flag(s) for linker Visual Studio

Use the /VERBOSE:LIB option to find out which libraries the linker is searching.

/VERBOSE:LIB