initial command for SFTP - SSH2

FTP, SFTP, FTPS, and SSH/telnet console issues

initial command for SFTP - SSH2

Postby foto50 » Sat Sep 17, 2005 2:44 pm

I use UE many times to also change config files on my root server and thatfor open files via SFTP - SSH2 as root (using putty keys) many times.

Due to my efforts to secure the server as much as possible, I would like to disable root login via SSH but then I lock myself out to open those files with UE (e.g. no permissions for any user except root to /etc/ssh/sshd_config etc...).

A workarround would be to send an initial command like "sudo su" right after connection but before any LIST, RETR or other command. This works fine with e.g. WinSCP3 but I cannot find any setting possibility for this in the SFTP windows from UE (and I really dont want to miss this wonderful feature from UE anymore).

Does anyone know some workarround that works with UE as well? Or might this even be an item for the "wish-list"?

Greetings FoTo50
User avatar
foto50
Basic User
Basic User
 
Posts: 11
Joined: Mon Sep 27, 2004 11:00 pm
Location: Kitz

Re: initial command for SFTP - SSH2

Postby deadprez » Sat Feb 18, 2006 6:57 pm

I know this is a late reply, but:

What you need to do is restrict your ssh server. For example use

ListenAddress 192.168.0.10

to only let sshd listen for incoming connections on your LAN.

# man sshd_config

for documentation
User avatar
deadprez
Newbie
 
Posts: 1
Joined: Sat Feb 18, 2006 12:00 am

Re: initial command for SFTP - SSH2

Postby foto50 » Sat Feb 18, 2006 7:18 pm

Hi deadprez

This works only when the server is in your LAN, but I'm talking about a server outside.

It is also not always possible to use a static IP, so the "ListenAddress" wont help in that case.

FoTo50
User avatar
foto50
Basic User
Basic User
 
Posts: 11
Joined: Mon Sep 27, 2004 11:00 pm
Location: Kitz

Re: initial command for SFTP - SSH2

Postby dseferiadis » Thu Aug 10, 2006 5:41 pm

I would be very interested in the ability to do the same as our systems require SCSU to root prior to making changes to the remote file system.
User avatar
dseferiadis
Newbie
 
Posts: 1
Joined: Wed Aug 09, 2006 11:00 pm


Return to FTP/SFTP / SSH/Telnet

cron