LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-25-2014, 06:34 AM   #1
vjdjsingh
LQ Newbie
 
Registered: Apr 2014
Posts: 8

Rep: Reputation: Disabled
SFTP argument to pass to send self IP address in sftp packet send to establish con.


I have used some of the common arguments while setting up a SFTP connection like:

X11Forwarding
AllowTcpForwarding
ChrootDirectory
ForceCommand

But is there such an argument that allows me send my own IP in the SFTP packet(which usually transfers all the details when we do $sftp username@w.x.y.z), so that the user to which I'm establishing a connection to can check my Ip in his "AllowUsers" list and my connection wont get denied.

I know it can be done through sshd_config file. If there is any other way please describe that too.

I found this page where all the argument details have been provided,but i am not sure which one to use.
http://www.openssh.com/cgi-bin/man.c...ry=sshd_config
 
Old 04-25-2014, 07:07 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Hopefully I didn't miss anything but a server can allow access by IP address via
sshd_config file using AllowUsers user@host.
/etc/hosts.allow
Or via an iptables rule.

If the server is configured for PubkeyAuthentication (public/private keys) the client sends a key file which identfies yourself. This is the only client argument that tells the server that you are you so to speak.
 
Old 04-25-2014, 07:09 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by vjdjsingh View Post
is there such an argument that allows me send my own IP in the SFTP packet (which usually transfers all the details when we do $sftp username@w.x.y.z), so that the user to which I'm establishing a connection to can check my Ip in his "AllowUsers" list and my connection wont get denied.
Unless you proxy your connection the address you connect from actually is in the "SFTP packet" already.
 
Old 04-25-2014, 07:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
I assumed the OP understood via the statement "transferring all the details" but maybe not.
 
Old 04-26-2014, 02:35 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Let's find out I'd say.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP logging for Chroot on CentOS 6.2 with openssh-5.3 not working (internal-sftp) RatherBFishin Linux - Server 1 08-30-2012 06:45 PM
LXer: Restricting Users To SFTP Plus Setting Up Chrooted SSH/SFTP (Debian Squeeze) LXer Syndicated Linux News 0 09-06-2011 07:10 AM
[SOLVED] send a file using the sftp syntax karthik.m.kuttan Linux - Newbie 2 04-01-2011 04:52 AM
How can I send a packet to mac address ... tobiasw Linux - Networking 8 10-22-2006 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration