» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with ssh + Ubuntu

How to Create Passwordless SSH Private/Public Key Pair on Ubuntu

An SSH key pair is needed to connect to an SSH server. It is possible to create a passwordless key pair so as to bypass the password prompt when you connect to your SSH server. This is handy for when you need to automate some processes through scripting. Follow the instructions below to create a new passwordless key pair:


1. Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:

sudo apt-get install openssh-client

2. Once OpenSSH is installed, stay in the terminal and type:

ssh-keygen -t dsa -f ~/.ssh/id_dsa

3. When prompted for a password, leave blank and hit enter, then enter again to confirm. Your key pair will be created and stored in ~/.ssh/ as id_dsa.pub [public key] and id_dsa [private key]

Next, you will need to copy the contents of id_dsa.pub to a file named authorized_keys and transfer the file to the target system you wish to connect to. Follow the instructions below:

1. Create the new file with the following command:

touch ~/.ssh/authorized_keys

2. Apply the correct permissions:

chmod 600 ~/.ssh/authorized_keys

3. Copy the contents of id_dsa.pub to the new file:

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

Finish by transferring the new file to the target server. You should now be able to connect to your SSH server without having to enter a password.

Source from here

Ubuntu: OnlyUbuntu Tutorials

How to Create Passwordless SSH Private/Public Key Pair on Ubuntu

An SSH key pair is needed to connect to an SSH server. It is possible to create a passwordless key pair so as to bypass the password prompt when you connect to your SSH server. This is handy for when you need to automate some processes through scripting. Follow the instructions below to create a new passwordless key pair:


1. Install OpenSSH. On Ubuntu, you can install OpenSSH by opening your terminal and typing:

sudo apt-get install openssh-client

2. Once OpenSSH is installed, stay in the terminal and type:

ssh-keygen -t dsa -f ~/.ssh/id_dsa

3. When prompted for a password, leave blank and hit enter, then enter again to confirm. Your key pair will be created and stored in ~/.ssh/ as id_dsa.pub [public key] and id_dsa [private key]

Next, you will need to copy the contents of id_dsa.pub to a file named authorized_keys and transfer the file to the target system you wish to connect to. Follow the instructions below:

1. Create the new file with the following command:

touch ~/.ssh/authorized_keys

2. Apply the correct permissions:

chmod 600 ~/.ssh/authorized_keys

3. Copy the contents of id_dsa.pub to the new file:

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

Finish by transferring the new file to the target server. You should now be able to connect to your SSH server without having to enter a password.

Source from here

Ubuntu: Only Ubuntu

Create a SSH Tunnel for Firefox to surf securely

A ssh tunnel for Firefox to a remote computer is good security measure. Especially when connecting via an untrusted network like a wifi hotspot or other public networks. The tunnel encrypts and sends the data to your remote machine then it is sent over the web to your destination. This tutorial assumes you have an account on a remote machine you can ssh into. This is a pretty easy set up.

Now all you need to do is login your remote computer that you have access to with SSH then issue this 1 command

ssh -D 9999 -C me@ipaddress.com

The -D switch - Specifies a local “dynamic” application-level port forwarding. We are also adding the -C switch for compression.

Next we need to put the settings into Firefox.

Firefox> Edit> Preferences> Advanced tab> Network tab> Settings button.

Select Manual proxy configuration

SOCKS Host: localhost Port: 9999

SOCKS v5

No Proxy for: localhost, 127.0.0.1

Note: Sometimes localhost can cause a problem. If your settings are right and it still is not working replace localhost with 127.0.0.1.



Source from here

Ubuntu: OnlyUbuntu Tutorials

How to fix broken NX user authentication after OpenSSL fix


It looks like OpenSSH Keys generated on Debian derived distros (Ubuntu/Voyage etc.) are REALLY bad. I’m currently rolling out OpenSSL key updates as adviced on http://wiki.debian.org/SSLkeys.

One casualty of this update was my NX server using freenx. It just tells me that I can’t be authenticated. In the log /var/log/freenx.log it shows the following:

– NX SERVER START: -c /usr/lib/nx/nxserver - ORIG_COMMAND=
HELLO NXSERVER - Version 2.1.0-71 OS (GPL)
NX> 105 hello NXCLIENT - Version 2.1.0
NX> 134 Accepted protocol: 2.1.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: shuerlimann
NX> 102 Password:
NX> 404 ERROR: wrong password or login
NX> 999 Bye

This post talks about the NoMachine NX Server, but gave me the necessary clues: http://lists.kde.org/?l=freenx-knx&m=116542288527396&w=2

The magic command for freenx from http://datakeylive.com
on Ubuntu is

sudo rm /var/lib/nxserver/home/.ssh/known_hosts

This is necessary, as the SSH host key has been updated… Well, a more informative error message would’ve been nice, but I’m thankfull to the guys who produce freenx, anyway;-)

IsiSetup: Huerlisi blogging on IsiSetup

Create a SSH Tunnel for Firefox to surf securely

A ssh tunnel for Firefox to a remote computer is good security measure. Especially when connecting via an untrusted network like a wifi hotspot or other public networks. The tunnel encrypts and sends the data to your remote machine then it is sent over the web to your destination. This tutorial assumes you have an account on a remote machine you can ssh into. This is a pretty easy set up.

Now all you need to do is login your remote computer that you have access to with SSH then issue this 1 command

ssh -D 9999 -C me@ipaddress.com

The -D switch - Specifies a local “dynamic” application-level port forwarding. We are also adding the -C switch for compression.

Next we need to put the settings into Firefox.

Firefox> Edit> Preferences> Advanced tab> Network tab> Settings button.

Select Manual proxy configuration

SOCKS Host: localhost Port: 9999

SOCKS v5

No Proxy for: localhost, 127.0.0.1

Note: Sometimes localhost can cause a problem. If your settings are right and it still is not working replace localhost with 127.0.0.1.



Source from here

Ubuntu: Only Ubuntu

scie.nti.st " Hosting Git repositories, The Easy (and Secure) Way

Excellent info on setting up a git server using gitosis

git: del.icio.us tag/git

HowTo: Remote Access Ubuntu using Firefox - Ubuntu Forums

This how-to will show you how to make a vnc connection over the internet using firefox on the client. This how-to should work with any java capable browser, including (personal success with) internet explorer.

Firefox: del.icio.us/tag/firefox

SSHFS on Windows via Samba Shares on Ubuntu VMWare-- The Glass is Too Big

OK. Before I start on this one, I'm stating for the record that I'm posting this as much so I don't have to find it again as anything. However, given the number of places online that I found this question asked, but not answered, I hope it proves useful t

Samba: del.icio.us tag/samba

Page 1 | Next >>