Ubuntu :: Create A Script For An Automated SFTP Connection?

Mar 3, 2010

I am trying to use autoexpect and can't seem to get it working. I installed expect and expect-dev and have the autoexpect example files but when I try the % autoexpect command from the terminal all I get is;"bash: fg: %: no such job" - what do I need to do so I can get this to work? I am trying to create a script for an automated SFTP connection. I created a bash script that works okay but it gets stuck at the password prompt and I heard that autoexpect would be the best way around that

View 2 Replies


ADVERTISEMENT

General :: Create An Automated Shell Script?

Sep 16, 2010

I am a complete newbie to linux. I am currently taking a course at Devry university called netw240. I am in my 2nd week of class and am required to turn in a paper at the end of the coures were I write an automated shell script. I am currently using Fedora 12 on a Vmware player and want to try to write a script that automates the process of Logging user login activity to detect unauthorized remote access attempts.I am looking for pointers on were to start, examples, ect.. anything that can get me started. Also, is this type of script to much for a beginner?

View 11 Replies View Related

Ubuntu Networking :: Ssh/sftp Connection Refused?

Jun 13, 2010

I'm trying to establish a connection between two laptops using sftp but am getting the following error message:

Connecting to <IP>...
ssh: connect to host <IP> port 22: Connection refused
Couldn't read packet: Connection reset by peer

ftp isn't working either. Both machines are running Ubuntu and connect to the internet through the same wifi router in case that's relevant. What could be the problem?

View 4 Replies View Related

Ubuntu Networking :: SFTP Connection Time Out?

Jul 7, 2010

I'm using Filezilla to connect to a remote server with site 2 site VPN. Even when i'm sending a small file with SFTP, the connection time outs and reconnects. Its happening again and again. Even SCP connection is also the same. BUT SSH CONNECTION IS WORKING FINE.

Filezilla log

ravindika@ravindika:~$ tail -f filezilla.log
2010-07-07 10:35:12 2690 2 Response: fzSftp started
2010-07-07 10:35:12 2690 2 Command: open "root@XXX.XXX.XXX.XXX" 22
2010-07-07 10:35:19 2690 2 Command: Trust new Hostkey: Once
2010-07-07 10:35:21 2690 2 Command: Pass: *******
2010-07-07 10:35:25 2690 2 Status: Connected to XXX.XXX.XXX.XXX

[Code]...

View 1 Replies View Related

Ubuntu Security :: Securing SSH Connection For SFTP Server

Jan 19, 2011

I'm running an SFPT server which my clients logon to using an FTP client. at the moment each client has a user name and password.

Thus far to improve security I've disabled root login but an looking for futrhrt ways to protect it from attack, having researched using google some of the security features suggested prevent the FPT clients from connecting.

Questions:
1- what further things can i do to secure my server that still allows it to be usable for FTP clients?
2- specifically is it possible to use non login pre-share key authentication?

How i set up the server is shown here: [url]

View 3 Replies View Related

CentOS 5 :: Limit To One Connection Per User For Ssh / Sftp?

Dec 3, 2009

Is it possible to limit each user so that only one can connect via each username for ssh/sftp? I work with a small company where there aren't really enough of us to justify using a revision control system, but we don't want to accidentally step on each other's toes, so we'd like to try simply preventing more than one person from accessing a given domain at once.

View 15 Replies View Related

Debian Multimedia :: Nautilus - Cannot Open SFTP Connection

Jun 4, 2015

I have changed my web server from FTP to SFTP for security reasons. I am used to Nautilus randomly crashing, but usually I got to connect fine via FTP. Now I could connect exactly once with SFTP, but ever since I only get the useful message:Oops! Something went wrong. Unhandled error message: SSH program unexpectedly exited

View 1 Replies View Related

Programming :: SFTP Connection With User And Password On The Header?

Mar 25, 2011

how I can do a ftp connection putting the user and passwd as default?

View 6 Replies View Related

General :: SFTP With User Nectand Passwd Set On The Header Of Connection

Mar 25, 2011

How I can do a ftp connection putting the user and passwd, and I would do! Today, I need to know how can I do this, but in SFTP!

View 1 Replies View Related

Fedora Servers :: SFTP Connection Refused Error: Could Not Connect To Server

Dec 20, 2009

I have FileZilla installed on this machine, and OpenSSH (with an open port 22) on another machine on my home network. When I try and connect, I get: Quote: Status:Connecting to 192.168.2.3... Response:fzSftp started Command: open "alphatwo@192.168.2.3" 22 Error:Connection refused Error:Could not connect to server

Which has left me puzzled as I have an open port. Does the username have to be defined somewhere? E.g. the machine acting as my SFTP server can be logged on to locally as alphatwo so that's what I logged in as (with the correct password). Is this correct? If so, does anyone have any ideas as to how I might rectify it? I want SFTP set up so I can copy PHP files from my laptop to /var/www/html/ on another PC (across the home network).

View 4 Replies View Related

Ubuntu Servers :: Sftp On Vsftpd - Make / Force All Users To Use Sftp And Not Just Ftp

Apr 13, 2011

i have a vsftpd server running well but i want to make/force all users to use sftp and not just ftp is this possible?

View 1 Replies View Related

CentOS 5 Server :: Rssh Error Connection Closed - Restrict The Users To Scp And Sftp

Aug 6, 2011

I have configured rssh 2.3 with openssh 5.8 on RHEL 5.6 64 bit to restrict the users to scp and sftp. When i try to sftp or scp it gives error connection closed. After long googling tried different solutions like add missing libraries, setuid to rssh_helper. I had full copy of /lib to /chroot/lib and /chroot/lib64 but no success. conf and log files are below for reference.

[Code]...

View 1 Replies View Related

General :: Multiple Users To Create Directories Over SFTP So The New Directories Keep The Same Permissions?

May 15, 2011

I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.

I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.

I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?

View 2 Replies View Related

Fedora :: Sftp - "Connection Closed" - Configuration

Dec 1, 2009

I can ssh to my Fedora 12 without any problem, but every time I sftp to it, it says "Connection closed" and then just kick me out. Is there any configuration I missed here?

I found the issue is that in .bashrc I have following line: bind '"C-a": "cd .. "' As soon as I comment it out, sftp start working. But I cannot explain it.

View 3 Replies View Related

General :: Connect To An SFTP Server From A Windows Machine To A SFTP Server Using A DSA Key?

Jul 24, 2011

As a Windows user, I generated a pair of DSA keys from CoreFTP Lite and sent it to a third party that runs an SFTP server. They told me that a valid DSA key needs to have ssh-dsa at the start and the username@systemname at the end. CoreFTP generated neither the ssh-dsa header nor the username@systemname footer. I tried with WinSCP and it didn't generate them either. Is there a difference between how SFTP works between Windows and Linux? If I put a useraccount@systemname at the end of the text will it work? How would the Linux system validate that my system is called "systemname"? If it can't validate, what is the purpose of adding it?

View 2 Replies View Related

Ubuntu Networking :: Can't Create An Ad-hoc Wifi Connection

Aug 5, 2010

I just removed ubuntu-desktop in favor of kubuntu-desktop. Now I can't create an ad-hoc wifi connection however hard I tried from network-manager. It simply is not visible to other PCs. And when some connection is created on another ubuntu PC, I can't connect to it.. I switched NM off and tried the CLI way.

[Code]

View 1 Replies View Related

Ubuntu Networking :: Create A Wireless DSL Connection?

Nov 1, 2010

Under DSL tab in network connection we can create DSL connections, but they only allow wired connections(eth0). I need to connect using wireless connection(wlan0). I migrated to Ubuntu recently. With windows I was able to connect with wireless connection. I'm sure there is a way to achieve this in Ubuntu as well.

I'm using Ubuntu 10.10 (using since 9.10)

View 7 Replies View Related

General :: How To Create Wireless Pppoe Connection In Ubuntu 9.10?

Feb 26, 2010

i want to create the wireless pppoe wireless network but it just dont show any help for pppoe connections.i tried with network manager but it works only for eth0 (not for ethl)

View 3 Replies View Related

Networking :: Way To Create VPN Connection To The Internet ?

Sep 23, 2010

For any distro, via CLI and configuring config files, without using graphical tools. Or there have to be different?

View 1 Replies View Related

General :: How To Create A Dial-up Connection

Oct 27, 2010

I am using Opensuse 11.3 In windows, I can create a new network connection , choose broadband network,create and copy onto desktop, so that I can dial up to my internet service provider. In linux, how to do that?

View 1 Replies View Related

Debian :: Create DSL Connection From System Tray

Nov 5, 2015

I have decided to install Debian 8.2 in my desktop. I am test driving it in virtual box find and solve any problem I may face later on. The isp I use provides me with a shared ip every time and I have to create a DSL connection with username and password to connect to it. I can create the connection from the gui connection manager using "nm-connection-editor" command in Debian.

I am using elementary os freya and I can do so from the system tray at the top right. So, I wanted to do the same in debian also. But I can only create VLAN, VPN, Bridge, Team and Bond. There is no option for DSL but if I create one in the way mentioned before, it appears as a profile under "Wired" network option in system tray. I read some post regarding network option in system tray but I could not make them work and other I did not understand. In KDE window manager I have this feature but I want to use gnome 3.

View 0 Replies View Related

Debian Configuration :: KDE4 - How To Create VPN Connection

Nov 4, 2010

Alright, I was playing with the VPN capabilities in KDE4 on Squeeze AMD64 on my personal laptop (see my signature) and found it very easy to create a VPN connection and connect, but that's it. I made a VPN tunnel to one of my client locations as a test, but could use rdesktop to get into the server. Then I realized I couldn't ping the server either. I also lost all ability to browse the web and everything while the VPN was up. Upon checking ifconfig as root, I saw that it created "ppp0" and hat it had pulled an IP from the client network, but all of my networking capabilities were gone. What gives? What is it that I am missing?

View 4 Replies View Related

Fedora Networking :: Not Able To Create PPPoE Connection

Jun 16, 2009

I have just installed FC11 from a DVD I created from an ISO.I also have FC10 (using here) and Windoze XP pro all on separate HDDs.I have not been able to configure my internet connection, when I try to create a new xDSL connection I get an error message; package needed 'rp-pppoe'.I don't now how to get the package without a connection.I have tried with and without Network Manager.

View 2 Replies View Related

OpenSUSE Network :: UMTS: Can't Create A PPP Connection

Aug 2, 2010

I tried to build a PPP connection with umtsmon, but failed. I'm using a ZTE MF110 Stick. The reaction from my provider's support was succinct: "Linux untersttzen wir nicht." (We don't support Linux.)

The hardware seems to work fine, the stick shows a green light, and I sent a test SMS via umtsmon. The umtsmon interface successfully identifies my Provider, but does not connect.

Here is part of umtsmon debug output:

Code:
UIState::setState(6 -> 6)
##P4 t=133: ConnectionInfo:InhibitionCount ++, now is 1
##P3 t=133: TempSerialPort::TempSerialPort()
##P5 t=133: 0x75a6c0 = Query::setSerial(0x7fffece12a00)
##P3 t=134: Serial::openDev('/dev/ttyUSB2') as FD 8 - Serial instance

[Code].....

View 9 Replies View Related

Networking :: How To Create A Proxy Connection, Wvdial

May 5, 2010

What I want to do is to share the internet connected to a computer with a telephone, over another telephone which is permanently connected to the pc.The thing is, that some guys found a way of making this on windows, in fact, I already set it up on xp and works like a charm, it involves configuring in a certain way the telephone, and to use 2 programs. One is CCProxy, which redirects the internet connection to the telephone, and another one, which updates the IP adress of the telephone connection to dyndns, so that I can put that adress on my second telephone as proxy, and this way, surf on the net through my home internet on the telephone anywhere. Tricky right?

Now, the thing is I don't like at all booting windows only for sharing internet with my telephone. So I want to do it in linux. I use Ubuntu and Puppy linux home.I tried setting up the connection to the modem with wvdial, and... I got connected! But hey, when I connect to the telephone, I lost my internet connection (main, cable based, the pc connection) :-S. I mean, somehow, the "active" connection for the browsers and all the internet programs is now the connection I have made with my telephone, which is plugged to the computer.Now my objective here is that NO CHANGE of active connections get done when I start the connection to the phone, and then, get a program like CCProxy, and a dyndns updater for sharing the internet connection on the pc, to the connection made on the telephone-modem wired to the computer.

View 1 Replies View Related

General :: How To Create Wireless Connection In Ubuntu9.1?

May 2, 2010

how to create wireless connection in Ubuntu9.1??can u please guide...

View 2 Replies View Related

Server :: Create A Script For ISP Connection Check?

Jan 14, 2011

I would like to make a script which can check my ISP connection, I have a dynamic IP and it seems that lately it often gets changed.
So I thought of making a script which does a NSlookup and send this to my root address. But it would be better if it only does this when it notice a disconnect otherwise I get loads of messages. I use a watchguard firewall and behind this I have my Ubuntu server which is also the DNS and DHCP server for my internal LAN. My watchguard makes a DSL connection with my bridged DSL modem. Also the watchguard has a logging system and I send the syslog to my ubuntu server but it's too much work to look everyday into this whole logfile system.Or would it be better to look into this logging files and search for a specific description and send only this to my root mail?

View 10 Replies View Related

CentOS 5 :: How To Create A Dial Up Internet Connection

Jul 26, 2009

How to create a Dial Up internet connection in CentOS 5.3. Im using a USB modem

View 1 Replies View Related

CentOS 5 Networking :: Create A Single VPN Connection

Jul 28, 2010

I have just taken on a dedicated server sitting somewhere in Norfolk. I have created a website that uses PHP to connect to another remote server in order to interrogate a MSSQL database. This script, running on Apache, uses a VPN connection to connect to the remote server.To test, I have Apache on my laptop at home and just used Microsoft Network Connection to create the VPN connection.I have now uploaded this site to my new CentOS server and need to create the same VPN connection. I understand this is a command level and have been advised to use OpenVPN which I have successfully installed.My problem is I only have the details remote ip address, username and password. I believe I have to use the 'client.conf' script instead of server.conf.

View 1 Replies View Related

Fedora Networking :: Can't Create Vpn Connection - Cannot Save And Exits Out

Jun 17, 2010

I am running Fedora 13 Gnome. When I try to create a VPN connection using Network Manager (vpnc) it says that it cannot save the connection and exits out. I can provide other information if necessary.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved