11-07-2010
silent telnet and ssh using perl
Hi Experts,
I use perl telnet and ssh for normal tasks and health checks.
everything works fine but i would like to run scripts silently and print only data as i wish to.
by silent i mean.no banners /no prompts/ nothing.
I will format data before i print it on screen.
just formatted output.
Any hints ??
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have been using the following code for sending out an email from a AIX UNIX platform.
cat filename | telnet mailhost 25 >/dev/null
Time to time I get a message
loopback: A specified file does not support the ioctl system call.
Can anyone tell me what this means? I need this function... (1 Reply)
Discussion started by: cgardiner
1 Replies
2. UNIX for Dummies Questions & Answers
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
3. UNIX for Advanced & Expert Users
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
4. UNIX for Dummies Questions & Answers
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
5. UNIX for Dummies Questions & Answers
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
6. Shell Programming and Scripting
I would like to use the WWW::Mechanize module to access a webpage that is password-protected. I was wondering if there was a way to make the input silent when asked from the script. For example:
What is your password: <password>
Where <password> is where you put your password, but is silent... (2 Replies)
Discussion started by: eightysix
2 Replies
7. Shell Programming and Scripting
Somewhat long story:
I have a simple Perl CGI script that uses Expect to Telnet to a device and grab some data, and then spits it back to Perl for display on the Webpage.
This works for many devices I've tried, but one device just fails, it keeps rejecting the password on this device, only... (1 Reply)
Discussion started by: jondo
1 Replies
8. Shell Programming and Scripting
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.
( 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.
( ps -ef... (1 Reply)
Discussion started by: pranavagarwal
1 Replies
9. AIX
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
10. Shell Programming and Scripting
Hello Experts,
I am learning perl. I know ksh/bash/csh...
In ksh I use to do this way... to read user input in silent mode so that nothing returns on the screen.
stty -echo
read -r pswd
stty echo
Please let me know the way in perl how to do it.
Here are my OS and Perl Details...
... (3 Replies)
Discussion started by: explorer007
3 Replies
LEARN ABOUT MOJAVE
ssh-keysign
SSH-KEYSIGN(8) BSD System Manager's Manual SSH-KEYSIGN(8)
NAME
ssh-keysign -- ssh helper program for host-based authentication
SYNOPSIS
ssh-keysign
DESCRIPTION
ssh-keysign is used by ssh(1) to access the local host keys and generate the digital signature required during host-based authentication.
ssh-keysign is disabled by default and can only be enabled in the global client configuration file /etc/ssh/ssh_config by setting
EnableSSHKeysign to ``yes''.
ssh-keysign is not intended to be invoked by the user, but from ssh(1). See ssh(1) and sshd(8) for more information about host-based authen-
tication.
FILES
/etc/ssh/ssh_config
Controls whether ssh-keysign is enabled.
/etc/ssh/ssh_host_dsa_key
/etc/ssh/ssh_host_ecdsa_key
/etc/ssh/ssh_host_ed25519_key
/etc/ssh/ssh_host_rsa_key
These files contain the private parts of the host keys used to generate the digital signature. They should be owned by root, read-
able only by root, and not accessible to others. Since they are readable only by root, ssh-keysign must be set-uid root if host-
based authentication is used.
/etc/ssh/ssh_host_dsa_key-cert.pub
/etc/ssh/ssh_host_ecdsa_key-cert.pub
/etc/ssh/ssh_host_ed25519_key-cert.pub
/etc/ssh/ssh_host_rsa_key-cert.pub
If these files exist they are assumed to contain public certificate information corresponding with the private keys above.
SEE ALSO
ssh(1), ssh-keygen(1), ssh_config(5), sshd(8)
HISTORY
ssh-keysign first appeared in OpenBSD 3.2.
AUTHORS
Markus Friedl <markus@openbsd.org>
BSD
February 17, 2016 BSD