473,395 Members | 1,348 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Double Login to a single server

Hi,
I simply need to login in twice to the same server. The first login is the user login, james/password then the second login is the application login steelerfan/password. That is the way the System Admins have the box setup. Here is what I currently have(below).

Expand|Select|Wrap|Line Numbers
  1. $ssh = new Net_SSH2('10.10.10.10'); 
  2.  if (!$ssh->login('james','Jg#12345') ){
  3.     exit('Login Failed');
  4.     echo "You are not currently connected to 10.160.20.110";
  5.  }
Now I need to login as the application.
Jun 11 '14 #1
1 1149
Luuk
1,047 Expert 1GB
next time use '[code]' tags.....

create a second login:
Expand|Select|Wrap|Line Numbers
  1. $ssh2 = new Net_SSH2('10.10.10.10');
  2. if (!$ssh2->login('steelerfan','password') ){
  3. exit('Login Failed');
  4. echo "You are not currently connected to 10.160.20.110";
  5. }
  6.  
Jun 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: David Bird | last post by:
I am attempting to build a command string to update a field in a dataset. the command string looks like this: Dim cmdString As String = "Update set lName = '" & clName.Trim & "', fName = '" &...
1
by: Shikari Shambu | last post by:
Hi, I have a ASP.NEt web application with forms authentication deployed on single server. I do not use Session State, just the HttpContext and so on. Now, we want to move to a load balanced...
1
by: ChrisFrohlich | last post by:
Here's my scenario: I have several ASP.NET applications built on .Net 1.1.x running on a Win2K3 IIS6.0 app/web server. Most of these are in-house, but one is purchased, meaning I do not have a...
11
by: rshepard | last post by:
I start with a list of tuples retrieved from a database table. These tuples are extracted and put into individual lists. So I have lists that look like this: . When I concatenate lists, I end up...
2
by: DannyMc | last post by:
Hi, i faced a problem while executing code in double quote "" and single quote '' let say example, we type in manually: >ls abc | grep "\.\/" it works. and when i implement this into my...
0
by: Jean | last post by:
Hi, I have a question about logins and sql server express and an ASP.NET aplication. I put this question in sql server newsgroup, but without real answer sofar. I created a login 'Network...
4
by: joecolson | last post by:
I've been trying to devise a JavaScript function that will take a GPS latitude or longitude coordinate expressed as degrees, minutes and seconds, and convert it to decimal degrees. Once the...
1
by: alexseow | last post by:
How to prevent double login with same account? , hv any ideas? thanks
5
by: rahul23 | last post by:
OpenFileDialog openFileDialog1 = new OpenFileDialog(); openFileDialog1.InitialDirectory = "C:\\Program Files\\Microsoft SQL Server\\MSSQL10_50.MSSQLSERVER\\MSSQL"; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.