SSH KEY Authentication Linux How To

Hi,

If you want to have a workstation with (Linux or Mac) to SSH into a server without a passphrase, this is how you can do it.

On your workstation generate a “key” with ssh-keygen

ssh-keygen

This will create a id_rsa and id_rsa.pub under your home dir/.ssh

mac : /Users/your_account/.ssh/
linux : /home/your_account/.ssh/

id_rsa : this is your private key, you keep it safe on your machine!!
id_rsa.pub : this is the key you copy to each server you want to authenticate without a password.

Copy the id_rsa.pub to the server, you can use scp for that

scp /Users/your_account/.ssh/id_rsa.pub root@myserver.com:/root/.ssh/id_rsa_youraccount.pub

WARNING : the id_rsa.pub must be copy under the account you want to authenticate on the server. So if normally on your server you log in as root (not recommend), you will copy the id_rsa.pub under the root.

WARNING2 : I strongly suggest you rename the id_rsa.pub on the target for id_rsa_youraccount.pub because a file can already exist and might be overwritten.

Now. The id_rsa_youraccount.pub is on the server.
SSH to the server (yes with your credential, for the last time ;))

You need to import your key into a special file called authorized_keys

with the scp command I copied the file into the root.

cd /root/.ssh/

now import the id_rsa_youraccount.pub into the authorized_keys

cat id_rsa_youraccount.pub >> authorized_keys

Quit your current ssh.

Retry ssh with :

ssh root@myserver.com

No password should be asked.

 

QNAP no space left and inaccessible

1.Power off the NAS.  Then power it back on.

2. Run a ping, as soon as you can SSH back into the NAS, run the command:

#/etc/init.d/services.sh stop

3.  Once service is stopped, you can run: *** or you can delete files in SSH ***

#/etc/init.d/smb.sh start

Once that service starts, you should be able access the shared folders again:

\\NAS_IP

4.Then once you remove what you need, run:

#/etc/init.d/services.sh start

 

Profiles Migration Tools

Hi,

You need to move a profiles from one domain to another you can use this great tools

User Profile Wizard 3.8 is the latest version of ForensiT’s powerful workstation migration tool. User Profile Wizard will migrate your current user profile to your new domain account so that you can keep all your existing data and settings.

You can download it from here

http://www.forensit.com/downloads.html

Regards,

 

Adobe Acrobat Reader – Slow to open

Hi,

The Acrobat Reader version 9+ are slow to open even a one page PDF with 2 caracters in it. The slowness come from the side bar, (comment bar, highlight and so on).

To improve the loading speed you have the option to turn off those bar, but in some cases it’s not an option.

The way I figure out to speed it up :

Edit,  Preferences

3D & Multimedia

Desable :  Enable Hardware Rendering for Legacy video card

Security (Enhanced)

Disable Enable Protected Mode at StartUp

Close all adobe instance or reboot.

Try.

Regards,

VMware Fusion Custom NAT Network – Default Gateway IP

Hi,

If you need advance networking with VMware Fusion, the preference menu doesn’t offer a lot of option to modify the default gateway, the subnet mask and so On.

Basically you have to understand some basic information.

By default when you add a new Custom Network, vmware will call it : vmnet2 or 3 or ..

The default gateway created by Fusion for your new network will be : network range and the network address it’s 2. the 1 it’s reserve for the option to connect your Host MAC on the network.

ex : 172.17.0.1 (MAC HOST) 172.17.0.2 (Default Gateway for your custom network).

But for my setup I needed to use the .1 as the default gateway !

Here’s the steps.

VMware Fusion : Preference : Network

Use the + sign to create a new one :

Critical if you want your VM goes on the internet :

  • You need to check : Allow virtual machines on this network to connect to external networks (using NAT)
  • *** DO NOT CHECK *** CONNECT THE HOST MAC TO THIS NETWORK
  • Check the DHCP Subnet IP and specify your network parameters.

Now with this the basic is done. Let’s go to change the default gateway.

Open a text editor (I preferred Text Wrangler).

open the path : /Library/Preferences/VMware Fusion/vmnet2/nat.conf

WARNING *** vmnet2 or vmnet3 or vmnet4, the name should match the custom created in the previous steps.

In the beginning of the nat.conf file, adjust the default gateway address / netmask as you need.

# NAT gateway address
ip = 172.17.0.1
netmask = 255.255.0.0

Save the File.

Close / ReOpen Fusion and test.

FYI : I assumed, you modify your VM Network CARD  to be assigned to your new Custom Network!!!!!

If you did all good you can now ping your gateway address!!

J