Sponsored Content
Full Discussion: ssh2 & sftp help
Top Forums UNIX for Dummies Questions & Answers ssh2 & sftp help Post 302077366 by tansha on Wednesday 21st of June 2006 02:20:47 PM
Old 06-21-2006
Hi ,

Managed to solve the problem. Actually the servername I am trying to connect had no entry in the /etc/hosts file.

Working fine now

Thanks again for your help.
 

10 More Discussions You Might Find Interesting

1. AIX

SSH2 help !!!!

Hi, I need to implement sftp between server 1 and server2. I have already generated the public key using account user1 on server 1 and and sent it to the administrator of server2. I have also finished updating the identification file at /home/user1/.ssh2 I have an account created... (2 Replies)
Discussion started by: tansha
2 Replies

2. Shell Programming and Scripting

SFTP & Passphrase('s)

Hi all, I generally use the something along the lines of the following when I need to perform SFTP's ... sftp -v -o IdentityFile=${IdentityFile} \ -b ${SFTP_BATCH_FILE} \ ${USRID}@${IP_OR_DNS}:${REMOTE_DIR} 2>&1 | tee -a ${SFTPLOG}Now currently we are not using any passphrase... (4 Replies)
Discussion started by: Cameron
4 Replies

3. Shell Programming and Scripting

File locking (Unix/Linux) & sftp

Hi all, Can anyone help ...on how to ensure that a file is locked . thanks & regards, Soodoo ---------------------------------------- Problem description: - We usually use the mv command in scripts to make sure that a file is complete and not being written to by another process. ... (1 Reply)
Discussion started by: soodoo
1 Replies

4. Shell Programming and Scripting

Using SSH2 in windows

I have Windows server setups consisting two servers to work on. I have to run a batch file on server 2 (say, Batch2) by running a batch file on server 1 (Say, Batch1). We have Tectia SSH server-client setup. Could anyone please tell the script/code for Batch1? (1 Reply)
Discussion started by: sakha83
1 Replies

5. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

6. Solaris

SFTP from SSH2 to SSH

Hi, Earlier, I have configured SFTP successfully in my prev jobs. This time I have to configure SFTP for local server (uses SSH2) and remote server (uses SSH). I tried to search the forum. I did not find the right thread. I appreciate your help. The following is the additional info >... (5 Replies)
Discussion started by: bobbygsk
5 Replies

7. Shell Programming and Scripting

sftp + expect: disconnection & restart removes already transfered data.

I have an ftp statement that when it restarts, it will write over the top of the file at the other end, rather than append to the file part sitting at the destination. This is a problem because the flaky connection fails so regularly that the 2GB file I try to transfer will never complete. ... (2 Replies)
Discussion started by: rupert160
2 Replies

8. Solaris

SSH & SFTP Chroot

Hello all, does anybody knows a procedure to enable an chroot for users using ssh and sftp ? Thanks (1 Reply)
Discussion started by: celord
1 Replies

9. UNIX for Dummies Questions & Answers

SFTP connection to SSH2 UNIX server

Plz share how we can make a passwordless SSH connection from a SSH1 UNIX server to SSH2 UNIX server. (3 Replies)
Discussion started by: krishna87
3 Replies

10. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies
hosts(4)							   File Formats 							  hosts(4)

NAME
hosts - host name database SYNOPSIS
/etc/inet/hosts /etc/hosts /etc/inet/ipnodes DESCRIPTION
The hosts file is a local database that associates the names of hosts with their Internet Protocol (IP) addresses. An IP address can be in either IPv4 or IPv6 format. The hosts file can be used in conjunction with, or instead of, other hosts databases, including the Domain Name System (DNS), the NIS hosts map, the NIS+ hosts table, or information from an LDAP server. Programs use library interfaces to access infor- mation in the hosts file. Note that /etc/hosts and /etc/inet/ipnodes are symbolic links to /etc/inet/hosts. The hosts file has one entry for each IP address of each host. If a host has more than one IP address, it will have one entry for each, on consecutive lines. The format of each line is: IP-address official-host-name nicknames... Items are separated by any number of SPACE and/or TAB characters. The first item on a line is the host's IP address. The second entry is the host's official name. Subsequent entries on the same line are alternative names for the same machine, or "nicknames." Nicknames are optional. For a host with more than one IP address, consecutive entries for these addresses may contain the same or differing nicknames. Different nicknames are useful for assigning distinct names to different addresses. A call to gethostbyname(3NSL) returns a hostent structure containing the union of all IPv4 addresses and nicknames from each line contain- ing a matching official name or nickname. A call to getipnodebyname(3SOCKET) is similar, but is capable of returning hostent structures containing IPv4 and IPv6 addresses. Applications might prefer to use the address-family independent getaddrinfo(3SOCKET) API for name-to- address lookups. A `#' indicates the beginning of a comment; characters up to the end of the line are not interpreted by routines that search the file. Network addresses are written in one of two ways: o The conventional "decimal dot" notation and interpreted using the inet_addr routine from the Internet address manipulation library, inet(3SOCKET). o The IP Version 6 protocol [IPV6], defined in RFC 1884 and interpreted using the inet_pton() routine from the Internet address manipulation library. See inet(3SOCKET). This interface supports node names as defined in Internet RFC 952, which states: A "name" (Net, Host, Gateway, or Domain name) is a text string up to 24 characters drawn from the alphabet (A-Z), digits (0-9), minus sign (-), and period (.). Note that periods are only allowed when they serve to delimit components of "domain style names". (See RFC 921, "Domain Name System Implementation Schedule," for background). No blank or space characters are permitted as part of a name. No distinction is made between uppercase and lowercase. The first character must be an alpha character [or a digit. (RFC 1123 relaxed RFC 952's limitation of the first character to only alpha characters.)] The last character must not be a minus sign or period. Host names must not consist of numbers only. A host name must contain at least one alphabetical or special character. Although the interface accepts host names longer than 24 characters for the host portion (exclusive of the domain component), choosing names for hosts that adhere to the 24 character restriction will insure maximum interoperability on the Internet. A host which serves as a GATEWAY should have "-GATEWAY" or "-GW" as part of its name. Hosts which do not serve as Internet gateways should not use "-GATEWAY" and "-GW" as part of their names. A host which is a TAC should have "-TAC" as the last part of its host name, if it is a DoD host. Single character names or nicknames are not allowed. EXAMPLES
Example 1 Example hosts File Entry The following is a typical line from the hosts file: 192.9.1.20 gaia # John Smith Example 2 Example IPv6 Address Entry The following is an example of an IPv6 hosts entry: 2001:0db8:3c4d:55:a00:20ff:fe8e:f3ad myhost # John Smith SEE ALSO
gethostbyname(3NSL), getipnodebyname(3SOCKET), inet(3SOCKET), nsswitch.conf(4), resolv.conf(4) Braden, B., editor, RFC 1123, Requirements for Internet Hosts - Application and Support, Network Working Group, October, 1989. Harrenstien, K., Stahl, M., and Feinler, E., RFC 952, DOD Internet Host Table Specification, Network Working Group, October 1985. Hinden, R., and Deering, S., editors, RFC 1884, IP Version 6 Addressing Architecture, Network Working Group, December, 1995. Postel, Jon, RFC 921, Domain Name System Implementation Schedule (Revised), Network Working Group, October 1984. NOTES
/etc/inet/hosts is the official SVR4 name of the hosts file. The symbolic link /etc/hosts exists for BSD compatibility. The symbolic link /etc/net/ipnodes exists for backwards compatibility with previous Solaris releases. SunOS 5.11 24 Feb 2008 hosts(4)
All times are GMT -4. The time now is 09:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy