TELNET to SSH


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting TELNET to SSH
# 1  
Old 10-06-2008
Data TELNET to SSH

Hi All,

I was implementing a change of TELNET to SSH connectivity, and finding it tough at a point where I was connecting to another unix server through TELNET.

Code:
( ps -ef |grep abcd) | TELNET x.xx.xxx.xx

now I when I tried to replace TELNET with SSH, i am not able to connect.

Code:
( ps -ef |grep abcd) | SSH x.xx.xxx.xx

it is also asking for the password. How can I use avoid automate the password authentication and get through it to be running?

Any ideas will be heartfully appreciated. Am a bit short of time here.. Smilie
# 2  
Old 10-06-2008
try
Code:
ssh user@ip.address.or.hostname "command to run"

It will ask for your password, but you can authenticate yourself with your public-key:
1. create a public+private key without a passphrase
Code:
ssh-keygen -t dsa

2. copy the public key part to the file 'authorized_keys' in the .ssh-subdirectory in the homedirectory of the user on the server you are trying to connect to. If that directory doesn't exist, you must create it first.
Code:
scp .ssh/id_dsa.pub user@ip.address.or.hostname:.ssh/authorized_keys

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

telnet via ssh to an APC UPS

Hello! First post, please be gentle! I have some APC UPS devices that I'm trying to log in to. They are currently configured to use telnet -- as a safety precaution, they can only be accessed from our 'bounce' machine. Because I want to do this from a script on my local machine, I'm doing it... (2 Replies)
Discussion started by: Korla Plankton
2 Replies

2. SuSE

Unable to telnet (non-ssh) as root

Hi forum, I face a strange issue. I'm able to telnet as root with ssh. But I'm not able to telnet (non-ssh) as root to my Suse 10 machine. Can someone please point to significant files where I need to make changes for Suse 10 machine and resolve this issue. Thanks in advance. (2 Replies)
Discussion started by: anilgurwara
2 Replies

3. Solaris

SSH enable, Telnet disable ...

Hi... How do I enable SSH and disable telnet.. Also - is there anything special I need to do to ensure that a new user can use ssh and su but not telnet? Adel (15 Replies)
Discussion started by: ArabOracle.com
15 Replies

4. Shell Programming and Scripting

Need 'expect' help, ssh/telnet and trapping

So here is what I am trying to do. I have a large # of switches and routers I am trying to log into. Unfortunately some have ssh only, some have telnet only. and some i have never logged into with ssh. I first want it to SSH, if i have never logged into the box it will ask for adding the ssh key. I... (0 Replies)
Discussion started by: ippy98
0 Replies

5. AIX

Problems with SSH / telnet

Hey, I have upgraded 3 servers from SSH Tectia 4.0.3 to SSH Tectia 6.0.2. 2 of them are working fine but one server suddenly began to have troubles after about 2 hours. Now it is impossible to login to this server using SSH and even telnet. When SSH is running on this particular server, the CPU... (20 Replies)
Discussion started by: Hille
20 Replies

6. UNIX for Dummies Questions & Answers

Telnet and ssh in a script

dear all, I know that this question has been asked before frequently, but I really don't get it. My question is composed of several ones. First:To telnet through a script, I was told to use the way described below, and it works for me, but i don't understand the syntax here.... (3 Replies)
Discussion started by: marwan
3 Replies

7. UNIX for Dummies Questions & Answers

like ssh telnet

I want to learn some commands like ssh, telnet and others where i can be tease. thanks for help... (2 Replies)
Discussion started by: Kostantinos
2 Replies

8. UNIX for Advanced & Expert Users

about ssh and telnet

I amn't advance but i want to learn some commands where here you can help me. i don't learn easy commands but i learn if its good experience and interesting. I want to learn about ssh, telnet and how i can be miff ( i don't speek good english but i hope to understant me) thanks for any help... (1 Reply)
Discussion started by: Kostantinos
1 Replies

9. Solaris

Can ftp but not telnet/ssh/rsh

Hi , I have a Solaris 9 machine in which I can ftp but telnet/rsh/ssh is not working, although it was working before. I cannot also log in through the console. I get the banner for telnet but it kicks me out. Any ideas? rte (2 Replies)
Discussion started by: run_time_error
2 Replies

10. UNIX for Dummies Questions & Answers

telnet ans ssh

Hi all, I need few information as follows: 1. I am acessing one the machine uismg putty at port no 12023 using telnet service. My question is i heard by defalult the port for telnet is 23. Why it is 12023 in my case. Also where can i change it. 2. i install new debian server. And then... (1 Reply)
Discussion started by: gauri
1 Replies
Login or Register to Ask a Question