Posted by: isaraffee | August 10, 2009

Using ssh in Vector Linux

Using ssh in Vector Linux

To check ssh agent and server are installed in Vector Linux, type:

root:# which sshd


This shows the location of the sshd service

To see if there are any ssh agent running, type:

root:# ps -ef|grep ssh

root 3488 1 0 01:08 ? 00:00:00 /usr/bin/ssh-agent -s

root 4560 3510 0 02:20 pts/0 00:00:00 grep ssh

Now let’s start the ssh server, by typing:

root:# cd /etc/rc.d/

root:# ./rc.sshd

usage ./rc.sshd start|stop|restart

So you need to supply the argument to the script:

root:# ./rc.sshd start

Now checking for both ssh server and client running:

root:# ps -ef|grep ssh

root 3488 1 0 01:08 ? 00:00:00 /usr/bin/ssh-agent -s

root 4573 1 1 02:26 ? 00:00:00 /usr/sbin/sshd

Let’s execute some ssh commands

root:# ssh neptune

The authenticity of host ‘neptune (’ can’t be established.

RSA key fingerprint is 09:34:ab:25:5d:90:39:03:f4:f8:f3:dc:bd:2b:36:94.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added ‘neptune’ (RSA) to the list of known hosts.

root@neptune’s password:

Vector Linux 5.8 Standard 12-16-2006 on Linux

Yes, I am able to remotely and more importantly securely accessing the the remote host, neptune. Looking at the above output, you need to supply password to the host that you are remotely accessing.

To secure copy a file to another host, type:

root:# scp reviewvl.doc root@neptune:/tmp

root@neptune’s password:

You can also swap the hostname and the filename,. e.g.

root:# scp root@remotehost:/tmp/abc.txt /root/mylocaldir/


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: