I am creating an ODI server, and the first task is to setup the linux user.
This post will show how to create a user and connect to it in MobaXterm using Keys.
The Tasks involved are:
- Create the User
- Set the Password
- Login and Create the key file
- Create the Keys (Private and Public)
- Add the Public Key the key file
- Create the Private Key
- Use the Private key in Moba xTerm
Create the User
useradd -s /bin/bash -m -c "mobademo" mobademo
Set the Password
passwd mobademo
Login
Here I have created a session in MobaXterm, specifying the username
Now Create the .ssh Folder, and a file called authorized_keys
[mobademo@localhost ~]$ mkdir .ssh
[mobademo@localhost ~]$ chmod 700 .ssh
[mobademo@localhost ~]$ cd .ssh
[mobademo@localhost ~]$ vi authorized_keys
Now create the key in Moba Key Gen
Click on Generate
Keep the Defaults
You can now save the Private in the Generator (for example to D:\demokey.ppk)
Now copy the Public key generated
And paste into the authorized_keys file
Now change the settings on the file to make it secure
[mobademo@localhost .ssh]$ chmod 600 authorized_keys
Now update the session setting to use the private key
I did record myself in a video doing this!