LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 07: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, 08:07 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,355

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
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, 08: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, 08:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,355

Rep: Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148Reputation: 6148
I assumed the OP understood via the statement "transferring all the details" but maybe not.
 
Old 04-26-2014, 03: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:45 PM
LXer: Restricting Users To SFTP Plus Setting Up Chrooted SSH/SFTP (Debian Squeeze) LXer Syndicated Linux News 0 09-06-2011 08:10 AM
[SOLVED] send a file using the sftp syntax karthik.m.kuttan Linux - Newbie 2 04-01-2011 05:52 AM
How can I send a packet to mac address ... tobiasw Linux - Networking 8 10-22-2006 05:54 PM

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

All times are GMT -5. The time now is 11:27 AM.

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