04-28-2010
To fool a program into thinking that it's running in interactive mode, use expect. Or use a pty wrapper like a perl module or write a C program.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have the problem with SFTP; BELOW IS the entry from my ssh_config file
It's prompting me for password all the time when using SFTP. pLEASE help. (1 Reply)
Discussion started by: dsravan
1 Replies
2. UNIX for Advanced & Expert Users
Helo ,
I m using linux pam library for user and its password authentication.
I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me
$ su - ram
Password:
You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies
3. UNIX for Advanced & Expert Users
I would like to use SFTP from command line without entering userid and password.
Here is what I have gathered and did.
1) Create a public and private key pair for the protocol you want to use.
To create a key pair for use by SSH2, enter:
ssh-keygen -t dsa
I did that and got... (7 Replies)
Discussion started by: Hangman2
7 Replies
4. Shell Programming and Scripting
Hi team,
I know if we need to transfer the files between between 2 servser, we use SFTP through key setup between 2 server.
currently There are some problems and we are not able to setup keys between servers.
How can i use password with SFTP for temporary solutions, so that the file... (6 Replies)
Discussion started by: Amit.Sagpariya
6 Replies
5. Shell Programming and Scripting
Hi
i have generate public private key pair using command
ssh-keygen -t rsa -b 2048
and then it made the two keys under the directory
~/.ssh ( in server 1)
one is public key and another one is private ..
i copied public one key onto my second server under the directory
... (22 Replies)
Discussion started by: aishsimplesweet
22 Replies
6. Shell Programming and Scripting
Hi Guys,
I need to know how can i achieve SFTP "with" password in a shell script.
I have already done passwordless key generation thing and it is working but at the moment i am interested in passing a password.
And another question I have is say i have a.ksh and b.sh scripts...Can i invoke... (6 Replies)
Discussion started by: Arpit Narula
6 Replies
7. Shell Programming and Scripting
Hi All,
I am trying to transfer a file from one server to a remote server using SFTP. Client is not ready for key setup.
I am working on Solaris 10.
Here is the code.
#!/bin/ksh
# sample automatic Sftp script to dump a file
USER="user1"
PASSWORD="pass1"
HOST="host1"
sftp $USER@$HOST... (6 Replies)
Discussion started by: megha2525
6 Replies
8. Shell Programming and Scripting
I have been tasked with scripting a sftp transfer from my clients sftp server to a vendor. I have been given a user name and password. This is an older OEL server, 5.2. I am not able to install any packages on this system. It does not have expect, ssh-pass, or any other ssh password helper... (6 Replies)
Discussion started by: mtrgoose
6 Replies
9. Shell Programming and Scripting
I am running a shell script as user A. In that script I need to execute a sftp that would transfer the file using another user B.
I am using the below command:
sftp -oPort22 B@remote server
However, I am getting password prompts each time.
I have done the following:
Added the public... (4 Replies)
Discussion started by: mady135
4 Replies
pckt(7) Miscellaneous Information Manual pckt(7)
NAME
pckt - STREAMS module for constructing message packets on a pty
DESCRIPTION
The pckt module is a STREAMS module that can be used with a pseudoterminal to transfer messages in packet mode. The packet mode feature of
pty devices allows the user process on the master side of the device to be informed of state changes.
For packet mode to be enabled in the pty device, the user process must push the pckt module onto the master side of the pty with a call to
the STREAMS I_PUSH ioctl() function.
When the user process writes data, the pckt module passes the message on to the next module or driver unchanged. When the user process
reads data or when the pckt module receives certain STREAMS message types, it constructs a packet out of the message for forwarding
upstream.
To construct a message packet, the module creates an M_PROTO message. This M_PROTO message contains the original message type in the first
data block and the original message in as many data blocks as needed. The user process can then retrieve the M_PROTO message with a call
to the getmsg() function.
The STREAMS message types that the pckt module places in packets, are the following: M_DATA M_IOCTL M_PROTO M_PCPROTO
M_FLUSH M_START M_STOP M_STARTI M_STOPI M_READ
All other messages are passed unchanged upstream.
If the message is an M_FLUSH message, the pckt module looks at the flag and takes the following actions: If the flag is FLUSHW, the module
changes it to FLUSHR before creating the M_PROTO message, and passes the message upstream. The module also sends an M_FLUSH message with
the FLUSHW flag set. If the flag is FLUSHR, the module changes it to FLUSHW before creating the M_PROTO message, and passes the message
upstream. If the flag is FLUSHRW, the module changes it to FLUSHW before creating the M_PROTO message, and passes the message upstream.
The module also sends an M_FLUSH message with the FLUSHW flag set.
RELATED INFORMATION
Functions: getmsg(2), ioctl(2). Interfaces: ldterm(7), ptem(7), streamio(7). delim off
pckt(7)