General discussion

Locked

Silly ssh question

By nitinkgoud ·
Hi Guys,
I have a problem with ssh.
I installed the requires open ssh packages on the server( refered some docs on the net).
Do i need to install anything on the client.
Now i need to figure out what to do next
This is what i think i need to do add user.

Login as root on the server.
1) ssh-keygen -b 1024 -t rsa -f /etc/ssh_hosts_key.pub -N " "

Login to root as the user.
2)ssh_keygen -b 1024 -t rsa
Enter the phrase

Basically this create 2 files in dir /home/<user_name>/.ssh. Copy id_rsa.pub as authorised_keys.

Copy this 3 files to the client machine in user directory

Login to client as root.
3) ssh-agent $SHELL
4)ssh-add <pahrase>

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by nitinkgoud In reply to Silly ssh question

Point value changed by question poster.

Collapse -

by abc098 In reply to Silly ssh question

You are doing steps that mostly done for login automatically to the SSH server.

If you are accessing the SSH server from Linux, just use the ssh command. Example:-
# ssh -2 -l username sshserver
"-2" is protocol number 2.

If you are accessing the SSH server from Windows, download putty at http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html.
You can also use WinSCP to upload/download files from/to your SSH server.

Not advisable to autologin as root to the SSH server. Can open up a security hole.

The easiest way for a beginner is not using public/private key at all.

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums