Server :: Ssh: Prevent Disconnection After A Command?

Aug 19, 2010

I wish to create aliases to log into a server and go to a specific folder. For example, I have two aliases:

Code:

alias REP1='ssh me@server cd /REP1'
alias REP2='ssh me@server cd /REP2'

and of course, I'm disconnected after cd commands. I found no ssh option which prevents this disconnection to occur. I also tried the following trick:

Code:

ssh me@server "cd /REP; bash -i"

but it left me with a crappy shell (no color, directions keys printing ^]]A, ...)

View 4 Replies


ADVERTISEMENT

General :: Prevent Move Command ?

Jul 30, 2011

I want2 know that how stop move folder on samba share.

View 1 Replies View Related

General :: Prevent Special Users To Run Batch Command?

Aug 6, 2011

What is the best way to prevent some user run some command? For example every body can run at and batch command and 3 or 4 special users prevent run these command?

View 7 Replies View Related

Ubuntu :: Finding A Command To Prevent Ristretto Of Starting With The System?

Jan 4, 2011

Ristretto is starting with my Xubuntu... My pc has only 125MB of RAM... Is there a command to prevent ristretto of starting with the system? Are there any other ways to let my xubuntu faster?

View 3 Replies View Related

Ubuntu Security :: How To Prevent Grub Command-line Boots

May 18, 2011

The ability to manually boot using the Grub command-line constitutes a big security risk in Linux, IMO.Any OS can be booted in this manner from a PXE-LAN, USB, or CD/DVD drive, circumventing BIOS-imposed boot restrictions. (Once a foreign OS is booted, of course, it can be used to access any part of an unencrypted hard drive.) Placing passwords or locking menu items (in the Grub configuration files) does not prevent a user from booting manually using commands entered at the grub command-line.

As it stands now, when presented with the Grub menu (or after bringing up a hidden Grub menu with the "ESC" key), a user only needs to hit "c" to enter the Grub command-line mode to facilitate any type of bootup whatsoever. (They can then enter manually the Grub commands to boot an OS on any device.) This is extremely insecure and allows any passerby to boot the computer with a few keystrokes and a bootable USB drive. How do I configure Grub so that it will require a password in order to enter the command-line mode (and thereby restrict boot options to the menu, which can then be password protected/locked) ?

View 8 Replies View Related

Ubuntu Networking :: Disconnection While Updating The 10.04?

Aug 4, 2010

Every time I update Ubuntu 10.04 or I install new packages, after a while (about 10-15 MB of dowloaded files) the router goes off-line.I have a 3COM ADSL Wireless 11g Firewall Router and I am connected with a LAN cable (but the same happens when I use the wireless). My laptop is a Dell Studio XPS.I have to restart the router every time, and it works for another 10-15 MB, then it stops again.

View 3 Replies View Related

Server :: Any Way To Prevent Fork Bomb On Server

May 1, 2010

I wanted to know is there any way to prevent fork bomb on a server or understand who did it and how did it I mean how to track reference of fork bomb and find out how does it occur ?

View 3 Replies View Related

Server :: NTP Config - Prevent Clients Using Server?

May 24, 2010

I'm presently writing software to keep my system time from drifting, it uses an external clock device.To verify it's accuracy I'm running ntpd as a server, and have another server monior the first as a client. This allows me to compare the offset with other 'valid' time servers.The problem is that the monitoring client keeps synchronising with my development server. How can I configure either the dev. server or the client so that it's time won't be selected as a good time source?The ntp.conf on the dev. server looks like:

Code:
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

[code]...

View 1 Replies View Related

Ubuntu Networking :: Schedule Disconnection Of Internet?

Mar 25, 2010

i am using ubuntu 9.10.i connect to net through the gnome netwok manager via a mobile broadband connection. can anyone suggest any commands or tools with the help of which i can disconnect the net at a preset time or after a fixed interval has expired. i know that by executing "poff" command in terminal i can disconnect the connection, but i want the same to happen automatically without any kind of user intervention at a scheduled time.

View 2 Replies View Related

Programming :: Receive The Notification On Internet Disconnection?

Mar 21, 2011

I am writing a chatting program and want to receive the notification on Internet disconnection (e.g. when the cable is unplugged). Is there any way to achieve this?

View 1 Replies View Related

Ubuntu Networking :: Internet Disconnection When Close The Terminal?

Mar 25, 2010

First, the network manager would show up on my girlfriend's profile (hers was the first one we created) but it won't show up on mine and it would not detect any internet connections. I found another thread that told me to type "nm-applet &" into the terminal, which works great. It shows the network manager and auto connects. But as soon as I close the terminal, it auto disconnects. Anyone know why and what I can do to make the network manager icon stay besides keeping the terminal open?

View 1 Replies View Related

Ubuntu Installation :: Resume Upgrade Broken By SSH Disconnection?

Apr 17, 2010

I started an upgrade last night (from Jaunty to Karmic) using a "do-release-upgrade" command on a remote server via ssh. However, this morning, I discovered that the ssh connection between my machine and my server was broken.

I can see that the do-release-upgrade process is still running (well, a giant /usr/bin/dpkg is in the process list) and waiting for a response.

Is there any way I can take control of that session from my current session?

View 2 Replies View Related

Slackware :: Remove Net Manager And Use Wicd Only To Resolve Disconnection

Jun 12, 2010

I replaced the trusty old aironet wireless card with a trendnet scanbus wireless card so I could secure my home wireless with wpa encryption. It uses the ath5k module, and the wireless is set up with wicd. The issue is that if I stop browsing for about 2 minutes, the next time I start to browse, it will disconnect, then reconnect no problem. I don't know if this is supposed to be a feature, but it is sure annoying. Is there a tweak somewhere to stop this? The other option would be to use ndiswrapper and use windows drivers, but I'd rather explore tweaking, if possible. If I have to use ndiswrapper, would I have to rmmod ath5k first, or would it be ok to use ndiswrapper directly?

View 2 Replies View Related

Ubuntu Installation :: Internet Disconnection After Installing Nvidia Driver

Jul 6, 2010

last night i have fresh installed ubuntu 10.4 on my computer. Then after that, I installed the updates. Lastly, i installed nvidia hardware driver so that i could use its graphical effects. After rebooting my computer, i've noticed that i was disconnected from the internet. And I was surprised that it is the cause of my internet disconnection because when i remove it, my internet comes back. What should I do with this?

View 7 Replies View Related

Server :: Prevent Ssh Connection For A User?

Jun 9, 2009

I have a user name is nicole. I want to prevent ssh connection for this user. How can i prevent ssh connection for this user?

View 9 Replies View Related

Debian Hardware :: Realtek RTL8101E Wired Ethernet Random Disconnection

Aug 23, 2014

I have this wired problem with my realtek rtl8101e ethernet. It keeps on disconnecting randomly with my router. My computer is connected to D-link router via LAN cable. This problem does not occur in my windows xp os.

I have to suspend and resume my Debian os (wheezy 7.6 KDE) to get the ethernet connection up everytime it disconnects with my router.

These are my ethernet details

Code:

Select allEthernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
        Subsystem: Realtek Semiconductor Co., Ltd. Device 0123
        Flags: bus master, fast devsel, latency 0, IRQ 42
        I/O ports at e800 [size=256]
        Memory at fdfff000 (64-bit, prefetchable) [size=4K]
        Memory at fdff8000 (64-bit, prefetchable) [size=16K]

[Code] ....

View 4 Replies View Related

Security :: How To Rate Limited IPTABLEs Treat A Screen Session On Ssh After Disconnection

Nov 3, 2010

Take this scenario If I have rate limited the connections to 4.(i.e if you attempt 4th connection you wont be able to login for some time.) If in a minute I get disconnected 3 times while I was already logged in on the server with a screen session, will I be able to login or I need to keep quite for a minute?

Quote:

-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --name DEFAULT --rsource -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

View 5 Replies View Related

Fedora :: How To Prevent GDM To Start X Server On Console

Feb 15, 2011

I have a headless server, and I want to prevent GDM 2.30 from starting the graphical login on the console screen. As I use XDMCP, I still need GDM running on the server... With previous versions of GDM, I was doing that through gdmsetup, which ended with these lines in /etc/custom.conf :

Code:

[servers]
0=inactive

but it seems that it's not working anymore with 2.30...

View 5 Replies View Related

Hardware :: Recommended Ups To Prevent Server From Burning Up

Jun 2, 2011

I think this is the right place to ask my question so I'll just go ahead. Where I live we have frequent power anomalies such as outage and why I would describe as power resets resulting in power being cut and restored in a very fast delay, resulting in all electrical equipment in my house to reset and all computers to improperly shutdown and reboot. I don't know how many times my beloved Linux server was reset like this and every time reiser fs has to replay transactions and so far I've been lucky I did not lose any hdd or other components but I think this will happen sooner than later.

What I am searching for is a device that would protect my server, scanner, router and a few other small devices from power surges and anomalies that would result in hardware and equipment damage. What I also want from that device is the capability to continue powering the devices until they properly shutdown. I think a ups is what I am looking for but all models that I've seen are priced $400 up and that's over my budget.

What I also want is the capability to announce to the server that the device is running on batteries and that the server can initiate it's normal shutdown procedure.

View 14 Replies View Related

Security :: Prevent Same User Ssh To The Multiple Server

May 23, 2010

how to prevent same user from ssh to multiple linux server at a same time , anyone of you have the script or how to do that ?

View 16 Replies View Related

Server :: OpenVPN Prevent Sites From Being Accessed?

Apr 18, 2011

Is there a way to prevent users of an OpenVPN service from accessing restricted sites? I know this can be done through a proxy server but through a VPN there seems to be no way of preventing traffic from accessing porn sites or other as the traffic is encrypted. I am using a VPN in the same fashion as a proxy server except that the VPN is necessary because some video sites use rtmp on port 1935, which a proxy server cannot route.

View 7 Replies View Related

Ubuntu :: Disconnection And Connects To Unavailable Wifi - Authentication Required By Wireless Network

Jun 8, 2010

When my router switches off... the wifi signals go off... then why the hell ubuntu keeps on connecting to that very wifi like hell and when doesnt connect shows the prompt to manually connect... with the wifi key already filled in... whats the use of saving the key when it has to ask the question from me either to connect or not?? and if its isnt available... just wait when its available.. and for the prompt,i have only option to cancel(because wifi isnt available at that moment if i select connect it again tries to connect like hell..which it cant) and if i cancel it wont auto-connect when wifi does get available! what the heck?

Windows has this done the right way... when the wifi isnt available.. it dissconnects silently.. and when it becomes available connects silently.. why isnt this been done this way in ubuntu??

Ive attached an image..one can see in the image that it says "authentication required by wireless network" when there isnt any.. as router has gone down!

And the second thing i want to report is that there is no way to report this bug from ubuntu... the launchpad.net talks of going through bug reporting process which is done against a definite package... now how does a user know which package would be causing this error?? there should be a more clear process of reporting such bugs to ubuntu team... which a common man using ubuntu( ubuntu says its most user friendly of all distros right?) can report..

View 1 Replies View Related

Debian Configuration :: What Can Prevent Setting Up RAID1 On Server

Jan 7, 2011

We have the following server at collocation: [URL]

Provider's technicians were working for 3 hrs but finally were unable to set up hardware RAID1 on it.

What could prevent them from doing it? Is it difficult to set up RAID1? It is mentionned as basic function in specifications.

They said debian not booting after raid configured...

View 2 Replies View Related

Server :: Prevent Samba Logging System Messages?

Mar 15, 2010

I�m looking into preventing the samba messages from appearing in the system log (/var/log/messages).I added syslog = 0 to smb.conf and reloaded the config but messages are still appearing�suppress logging or reconfiguremba such that the �nmbd� and �winbindd� messages do not appear in /var/log/messages

View 4 Replies View Related

Ubuntu Networking :: Prevent Apache2 Server From Starting At Boot?

Nov 18, 2010

One of my ubuntu 10.04 boxes starts apache2 server automatically at boot. I know from the output of the command:

Code:

sudo /etc/init.d/apache2 status

I can't remember even setting that up, and I don't think it does so by default, since my other box in fact does not even have apache2 server installed. I can stop the server once I login, but is there a way to stop it from automatically starting the server, or even better, completely uninstall the daemon. I tried

Code:

sudo apt-get remove apache2

but that does not work. I guess the daemon is part of some bigger package.

View 2 Replies View Related

Server :: Prevent Flash From Running Threads In High Priority?

Nov 21, 2010

Prevent flash from running threads in high priority

View 6 Replies View Related

Ubuntu Networking :: Loosing Connection After Few Minutes - Without Showing Any Sign Of Disconnection Except No Internet/skype/dropbox

Jul 15, 2010

I have an LG R-450 laptop with Ubuntu 10.04 installed in it. When I connect him to a network (either LAN or Wireless) it stays connected for a few minutes and then Just disconnects (without showing any sign of disconnection except no internet/skype/dropbox). Only way to renew connection is after startup. The network controller is SIS 191 Gigabit Ethernet adapter.

View 9 Replies View Related

Server :: Sync File Server Data Into Backup Server Machine By Command- Rsync -avu?

Jun 21, 2011

iam trying to sync file server data into backup server machine by command- rsync -avu path/of/data ipaddress-of-backup-server:/path/where/to/save after running it ask for root password and manually it is successful.but i want to make it automatic.for that i also tried cronjob and also generated authentication key but iam not successful in login automatically..anybody know how to authenticate root to login for storing data in backup server.

View 14 Replies View Related

General :: Disable The Su Command On A Server So That Users Cant Run The Su Command?

Apr 29, 2010

i want to disable the su command on a server so that users cant run the su command i removed the comment from the 3 and 5 line in /etc/pam.d/su file but it doesnt seem to work the file is shown below

#%PAM-1.0
auth sufficient pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.

[code]....

View 8 Replies View Related

Server :: Server Status Command Output Getting Dumped To Smtp Server Instead Of A File?

May 24, 2010

I am working on linux server with below specifications.Linux EDT 2008 i686 i686 i386 GNU/LinuxWhile checking the status of the server using the command 'opmnctl status' and when server is down the output is not getting redirected to file.I m using the command as,opmnctl status > abc.txt.

View 2 Replies View Related







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